Here's what's covered:
What are built-in functions?
Built-in functions are default variables available to be used throughout your forms. They can capture username of the person filling out the form, the first and last name of the user, their email address, OS type and more.
How do I capture the first name of the user filling out a form?
To capture the first name of the person filling out the form, please follow the instructions below.
STEP 1. Inside your form, add a Read-Only element.
STEP 2. On the right-hand side, scroll down to the Smart Control section.
STEP 3. In the Dynamic Value field, place the following syntax:
PLEASE NOTE: You must capitalize the "N" in lastName in order for the function to work properly.
STEP 4. Save your form.
STEP 5. Test it on your device.
Built-in Function Tip. To hide this element from the device, you can place the word false in the Condition Value field. This will still capture the information but will make it viewable only on the data side and not on the device side.
Download this form package for an example of all the built-in functions.
If you are looking to have the first letter of the first name and then the last name, place this in the Dynamic Value:
iformbuilder.firstName.substring(0,1) + " " + iformbuilder.lastName
This would return "J Smith" if the name was "John Smith"
Hope this helps!
Please sign in to leave a comment.