SharePoint Responsive > Web Parts > SmartForms > 4. Advanced Configuration
These are optional advanced configurations for the updated version of SmartForms.
If you would like to add a Cancel button that will clear all of the fields for a user if they decide not to submit the form, you can add one to your form via the widget.
When configuring the form, in the Fields tab, click Add a Widget. Drag the Cancel button widget to your form the same way you did the Submit button, but place it above the Submit button. Edit the button so it says "Cancel" and then in the top right, click the gray Save & Close to save your changes. Cancel buttons were default in the last version of SmartForms, but are now optional.
This is one of the best new features in this version of SmartForms. You can now easily add text and headings to your form.
Using the Spacer widget, you can add text and headers above or below fields. When configuring the web part, go to the Fields tab, click on Add a Widget and drag the Spacer widget to your form wherever you want the text or heading to appear. Click the edit icon (pencil) and then enter the text or heading into the text box. Use the toolbars as needed to format.
For headings, highlight the text you entered and select the Formats option and then select Headings and choose a heading (we suggest Heading 2 or Heading 3). In the top right click Save & Close to save your changes. Repeat wherever needed throughout the form.
You can remove a field from appearing on your form by going to the web part configuration, and in the Fields tab, moving it from the right column back to the left.
The field will still appear in the list, but will not appear to the user on the form. Remember to Save & Close after making changes and Check In and Publish the page.
If you would like a field to appear only when a specific answer is selected in another field, you can add logic to the field in the Fields tab. This case usually comes up with a Choice field. Place the field you want to hide below the corresponding choice field in the form (in the Fields tab, drag it to the right), then hover over the top right corner of the field and click the Edit icon (a pencil). For Default Display, select Hide instead of Show and Save & Close in the top right corner. Next, edit the choice field that determines when the hidden field will be shown by clicking the Edit icon (pencil). At the bottom of the menu you'll see the Logic section. Check the Enable box to enable logic, and now you'll be able to select a field answer as part of an "if" statement. In the "If answer is" dropdown, choose the answer value that the user will select to have the hidden field show. Leave the "then" dropdown to Show. In the "this field or widget" dropdown, select the corresponding field that you previously set to hide by default. Click Save & Close in the top right corner.
Now it will only show that field if the answer you set is chosen by the user.
To add Captcha verification to your form, have the web part configuration open and go to the Fields tab. Click on Add a Widget and drag the Captcha widget to the right column, usually best at the bottom of the form before the Submit button. Click the Edit icon (pencil) and copy and paste the Captcha Public Key and Private Key listed below into the corresponding fields. Save & Close.
Public Key (Site Key): 6LfypCsUAAAAAHlPL8E83UXx0HTV5wTiq5YRkJDAPrivate Key (Secret Key): 6LfypCsUAAAAAE4wjN4HivLG7mmR1WmERENYjHZU