iFormBuilder JavaScript Tips & Tricks
Table of Contents
What is Page Level JavaScript?
Page-Level JavaScript loads user-defined global variables and functions that can be called by a parent form and/or any of the related child forms.
PLEASE NOTE: All Page Level JavaScript needs to be written at the Parent form level. Those variables can be used on Subform elements.
Click here for more information on Page Level JavaScript.
How do I store email lists?
Using Page Level JavaScript, you can store email lists on your form at the page level. Please follow the instructions below.
With your form loaded in the Form Builder, click the Page Level JavaScript icon.
Using JavaScript, create a new variable.
var myList = "info@test.com, reports@test.com, sales@test.com, marketing@test.com";
Click Save then Close.
Add an Email element to the form.
From the Element Properties tab, click the Send Email box.
In the Dynamic Value field of the Email element, place the following:
myList
The Condition Value field of the Email element, place the following:
false
This will hide the element from the user's device.
Save your form.
iFormBuilder Tip: You can even go one step further and use the element Ref ID ELEMENT_SKIP_REPORT to hide this field from your Data View including the email report.
Comments
0 comments
Please sign in to leave a comment.