The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Adding a Field Dynamically - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Adding a Field Dynamically (/showthread.php?tid=2928) |
Adding a Field Dynamically - Argen - Feb 27th, 2014 Hello, We have a form that is filled out by drivers picking up items. On one pick up there can be from 1 to over 100 items, depending on the job. Currently we use iAuditor which allows the driver to click on a 'Add Item' button as many times as he wishes, which just adds another 'item' field. Is there a similar way to do this on FT? So far my options are just to create a bunch of different forms on FT depending on how many 'item' fields they may need. Thank you RE: Adding a Field Dynamically - Joe - Feb 27th, 2014 Hey there, Form Tools is best suited for data that has a one to one relationship. Adding records in this manner would like be best with two separate tables where each 'item' can just be an additional row of data instead of a new column / field. The solution you are considering is common among Form Tool developers. Typically you would just create a number of fields in advance and then enable the user to "add" a new field but those fields would have already been created. Cheers, Joe RE: Adding a Field Dynamically - Argen - Feb 28th, 2014 (Feb 27th, 2014, 1:23 PM)Joe Wrote: ...enable the user to "add" a new field but those fields would have already been created. Hi Joe, So I can create 100 possible 'item' rows, but how can I go about giving the users the ability to dynamically "add" a row? Conditional field? RE: Adding a Field Dynamically - Argen - Feb 28th, 2014 i.e. how do I hide the unwanted rows until they are wanted |