Breadcrumb
- Home
- Documentation
- Webforms
- Advanced Webform Configuration
Advanced Webform Configuration
How To Conditionally Show Or Require Fields:
- Login to the website.
- Navigate to the webform (Structure -> Webforms -> Find your webform).
- Select Build under the Operations column.
- Select Edit from the desired content item.
- Select Conditions at the top of the Edit menu.
- Add your conditions and then click the Save conditions button at the bottom of the page.
An Example Of Conditional Fields:
Suppose you have a webform with a radio field title “Person type” with the options Faculty, Staff, and Student and a radio field titled Student classification with the options Freshman, Sophomore, Junior, and Senior. If the user selects the “Person Type” Student, you want to know what their classification is (freshman, sophomore, junior, or senior). However, you do not want to display the “Student classification” field to users who identify as Faculty or Staff.
- Add a condition to show the “Student classification” field when the value of the “Person type” field is “Student”. You’re going to want to do this in the “Student” field
- Conditions if Person field = checkboxes:
- Conditions for student: State = Visible if “all” of the following met: Student “checkboxes” “checked”
- Hidden if “all” of the following is met: Student “checkboxes” “unchecked”
- Conditions if Person type = select:
- Conditions for student: State = Visible if “all” of the following is met: Person”Select” Value is “Student”
- Hidden if “all” of the following is met: Person “Radios” Value is not “Student”
- Conditions if Person type = radios:
- Conditions for student: State = Visible if “all” of the following is met: Person “Radios” Value is “Student”
- Hidden if “all” of the following is met: Person Select Value is not “Student”
- Conditions if Person field = checkboxes:
- Add a condition to require the “Student classificaiton” field when the value of the “Person type” field is “Student”. Note: The “Person type” field must be configured as “required” for this to work.
- In the Radios, General menu, select Form Validation and check the Required box to require a selection.
- Click the “Save conditions” button at the bottom of the page.
- Now when the form is viewed, the “Student classification” field does not display and is not requried unless the “Person type” selected is “Student”. The default state of the form. Note that the Student classification field does not display.
- The state of the form when the Person type selected is Student. Note that the Student classification field is displayed and is required.
How To View, Download Or Delete Webform Submissions And Submitted Data:
To View Data
- Login to the website.
- Navigate to the webform and click on the Results tab.
- To view a single submission, click on the view link for the submission.
- To view an analysis of the submitted data, such as the number of submissions per component values, calculuations, and averages, click on the Analysis link.
- To view the submission results in a table, click the Table link.
To download submitted data:
- Click the Download link.
- Configure the download and export options, then click the Download button at the bottom of the page.
To delete all submitted data:
- Click the Clear link.
- Confirm that you want to delete all submissions for the webform by clicking the Clear button at the bottom of the page.
How To Send An Email When A Form Is Submitted:
Often when a user submits a webform it is desired to send an email notifying someone of the submission or to the user confirming their submission.
To send an email to a specific email address:
- Login to the website.
- Navigate to the webform.
- Click the Emails/ Handlers link.
- Click Add email.
- Enter the email address of the recipient in the Title field to correctly label it.
- Select To email and enter the recipient email address.
- Select From email and enter your email address.
- Click the Save button at the bottom of the page.
To send an email to a user-provided email address (e.g. to the user submitting the form):
This vulnerability is mitigated if the site owner's email address is also receiving a notification email, which should alert the site owner to the exploitation. If the site owner's mailbox is not monitored, the open mail relay can be more easily exploited.
In addition to the steps below, we suggest adding the site's email to also receive these emails in order to monitor potential spamming attacks.
NOTE: To send an email to a user, the form must include an E-mail field to collect an email address from the user. For information about adding fields to a webform, please see the support article How to create or edit a webform.
- Login to the website.
- Navigate to the webform.
- Click the Emails/ Handlers link.
- Click Edit under the email.
- Click the Advanced tab.
- Under Additional Settings setup your desired email reply.
- Click the Save button at the bottom of the page.
Future Confirmation Settings:
By default after submitting a webform it will return the user to the page where the form was filled out, not the webform entity. A feature in progress will allow custom confirmation/ redirection to a different page if configured.
How To Provide A Custom Confirmation Message Upon Successful Form Submission:
- Refer to the above section, “To send an email to a user-provided email address”.
How To Close A Webform:
Closing a form prevents any further submissions by any users.
- Login to the website.
- Navigate to the webform.
- Select the Form tab.
- Under Form General Settings change the Form status to closed.
- Click Save at the bottom of the page.