Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2665 articles
Browse latest View live

Dynamic field names

Is there an easy way to create two hidden fields, one for field_name (list) and the other for field_value (number), and concatenate these into a visible field where field_name=field_value? Sorry if...

View Article


How to generate a list of Full names where I deliberately want some of those...

Hi, New to Mockaroo. I’m trying to generate a list of Full Names where I specifically want a many of the names in the list to be duplicates. How would I accomplish that? Thanks, Sean

View Article


Add quotes to names data type

Hello. Is it possible to add quotes to the name data type (First name, Last name, Company name, etc)? I mean, to get something like “Sam”, “Coca Cola” or “Smith” when the data is exported as a...

View Article

Unable to save my schema "Columns data type can't be blank"

tl;dr: remove all “JSON Object” field types and ensure your nested fields are prefixed with the parent field name Hi, I was having this problem when working with a field list generated from a json...

View Article

API Generate does not honor quote_char parameter

I can run this schema from the UI and have the quote_char returned in my response. https://mockaroo.com/da5d9670 But when I use the generate.custom request my response does not contain the expected...

View Article


Data generate using Regex

Take a look at this schema I just put together for you: https://mockaroo.com/2fe44830

View Article

Image may be NSFW.
Clik here to view.

How to return a certain value at formula when the reference field is blank?

Is this what you are looking to do? mockaroo.com Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel

View Article

Image may be NSFW.
Clik here to view.

Dynamic field names

Is this what you are trying to do? mockaroo.com Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel You can create hidden fields by prepending the field name with a double...

View Article


How to generate 1000 unique restaurant names?

Are you wanting to use a dataset with the unique names or a schema field to generate unique names? Here is an example of how to generate unique names using schema: https://mockaroo.com/8d261ea0

View Article


Image may be NSFW.
Clik here to view.

Picklist values

Please see this sample schema. You use for your field a data type of Custom List with a distribution of Random. mockaroo.com Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL /...

View Article

Concatenation with condition

I think this is what you are looking to do, please check it out: https://mockaroo.com/14620c70 Updated formula: if field('ID_Siswa') < 10 then...

View Article

How to generate multiple arrays inside an json object

Hello I have a structure with opening Hours, I have no clue how to generate this one { “openingHours”:{ “monday”:[ { “openTime”:“9:32”, “closeTime”:“13:14” } ], “tuesday”:[ { “openTime”:“06:35”,...

View Article

How to generate multiple arrays inside an json object

You were really close with your schema. Have a look at this, https://www.mockaroo.com/14b48f90. The root node openingHours must be part of each field so that it is nested correctly.

View Article


Image may be NSFW.
Clik here to view.

How to generate multiple arrays inside an json object

Thanks a lot!

View Article

Problem generating data

I have a fairly simple csv I’m trying to generate. When I click preview it shows 100 rows. If I click download data it is always empty. Anyone have any issues with this or how to troubleshoot it?

View Article


How can I add 0 in fornt of Time formate type

Better late than never. https://mockaroo.com/22d5f0e0 Check the formula on the field time. We are testing for length and if less than 8 we are using concat() to prepend a 0.

View Article

Problem generating data

I’m having the same issue - for me it seems to pop up when I add formulas

View Article


Image may be NSFW.
Clik here to view.

Dataset Column Is Always NULL

I am attempting to create a foreign key in one of my schemas by referencing the primary key in another schema using the Dataset Column type. No matter what I try the Dataset column is null. It doesn’t...

View Article

Dataset Column Is Always NULL

Is locationID your foreign key? If so, you will need to use the function from_dataset(). This function allows you to lookup a value in a dataset with criteria. Hope this helps. from_dataset("dataset",...

View Article

Image may be NSFW.
Clik here to view.

Dataset Column Is Always NULL

Having to use that from_dataset functoion would defeat the whole purpose of having the Dataset Column type. In their YouTube tutorial they do not use the from_dataset function so I don’t think that is...

View Article
Browsing all 2665 articles
Browse latest View live