iFormBuilder JavaScript Tips & Tricks
Table of Contents
- What is an Email Alert?
- How do I set up an Email Alert?
- How do I dynamically populate the subject of an email?
What is an Email Alert?
The Email Alert is different from the Email element in that it allows you to set up a static list of email addresses to be notified each time a record is submitted or edited for a particular form.
Click here for more information on the Email Alert.
How do I set up an Email Alert?
The Email Alert is set up inside the Form Assignment tab. For detailed instruction on how to set up an Email Alert click HERE.
How do I dynamically populate the subject of an email?
PLEASE NOTE: In this example, we'll be combining two elements on the form to populate the subject of the email.
STEP 1. Add a Text element to your form called Case Number.
STEP 2. Add a second Text element to your form called Employee.
In the Dynamic Value of the element, put the following:
iformbuilder.username
This will populate the element with the username of the person filling out the form.
STEP 3. Add a third Text element Email Subject.
In the Dynamic Value of the element, put the following:
(case_number + "-" + employee)
This will add the data from the Case Number element with the Employee (along with a with a dash). It would look something like:
44004-joetest40
STEP 4. In the Condition Value field of the Email Subject element, put the following:
false
This will hide the field from the device.
STEP 5. Under the Forms tab, click Form Assignment.
STEP 6. Choose the form for which you want to add the Email Alert, and click Assign.
STEP 7. In the Email Alert section, add the email addresses you want to send the records to.
STEP 8. From the Subject drop-down, choose email_subject. This is the element that will be used to populate the subject line of the email.
STEP 9. Scroll down to the bottom of the page and click Update.
STEP 10. Send a test record through and check your email. It should look something like the following:
Comments
0 comments
Please sign in to leave a comment.