Jump to content

DataPage Create New Entry Field Based on Variable

Recommended Posts

I am working on an app that has several moving parts. The variable in question (X) will be provided in a previous data page and I can reference the number. I want to then use that number to create (X) number of text entry fields.

I know this will require some Javascript, but I can't figure out how to get JS to create entry fields.

Link to comment
Share on other sites

Hello @soundsofthetime,

It is possible to add records to the Table by the Triggered Action based on some number (X).

However, fields can not be added by JavaScript. When you create the DataPage you configure the fields.

For example, it is possible to hide/show some fields by JavaScript conditionally. 

Could you provide more details about the use case to suggest options?

Link to comment
Share on other sites

Hi @CoopperBackpack,

Basically we are trying to add fields to allow a user to name a dog. The number of name fields depends on how many dogs they need to name.

If I can use JS to show fields, that might work and I can have an upper limit (our max is 10) and just have it unhide X number of fields.

How might I go about doing that?


Thanks again!

Link to comment
Share on other sites

Hello @soundsofthetime,

I can see the following approach:

1) From the first DataPage the number of dogs should be passed as a parameter to the second DataPage.

These articles can be helpful:



For example, the value is passed from the 1st DataPage


And received on the next step:


If you don't have the 'Number_Of_Dogs' field in the table used on the 2nd DataPage, you can use the Virtual field for that. Its Form Element should be 'Hidden'.

2) Utilize Rules to hide fields. In my example, I use virtual fields to populate the names and showcase the approach. In your case, that should be the Name fields.

The logic for the Rules should be: if the number of dogs is less than 2, hide the 2nd field, if the number is less than 3, hide the 3rd field, etc. for all the fields


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...