How to make a Formatted List: Bob, Mary, Jane and David.
Documents sometimes require a number of items to be formatted as a list. For example, when entering multiple individuals for a document you may want them to be displayed like the following, Bob, Mary, Jane and David. Because you don’t know how many items the user may need to enter this may seem to be quite a challenge.
ZumeForms provides a special system function to do this automatically with a very simple Script.
BuildList() is a function that you use in form script. You put this function into the Script of the source-Form Field that the User will enter the items into. Each time this source-field is updated the BuildList function runs, creating the list value, then putting it into the target-Form Field on the form.
- Create a form
- Create a Repeat Section
- Add a field to the Repeat Section (the ‘source field’)
- Add a Field underneath/outside the Repeat Section (the ‘target field’)
- Add this script to the source field in the Repeat Section. Where the targetfieldname is the name of the field underneath the Repeat Section.
Run Form. Add items into your form and see what happens!