PLEASE NOTE: In the below example we'll show how to define a variable called myname that has been assigned a value of Craig.
STEP 1: From inside the form builder, click Edit on the parent form.
STEP 4: Click the Smart Control tab of the element you want to populate with the Page Level JS, put myname. This is telling the element to populate with the data you defined.
This variable can be used over and over again throughout your form and/or subforms.
STEP 5: Test it out on your device.
iFORM TIP: Any functions or variables placed on a "subform" will not be available for use. Please place everything on the parent level.