How to Show or Hide Calculation Fields in a Form
Learn how to show or hide calculation fields in a form in Smarter Drafter Pro.
In Smarter Drafter, calculation fields can either be visible or hidden in a form, depending on how you want the user to interact with the data. Hiding a calculation field can simplify the form and keep the user focused, while showing it can help the user verify the calculated result. This guide explains how to show or hide calculation fields in your forms.
Instructions
1. Navigate to Your Form
- Open the form where you have added or want to add a calculation field.
2. Select the Calculation Field
- Click on the calculation field that you want to modify. This will open the field’s properties.
3. Set Field Properties
- In the field properties, you will find options to set the field as Hidden or Read-Only.
- Read-Only: The field is visible to the user, but the result is not editable. This is useful for showing calculated data without allowing changes.
- Hidden: The field is completely invisible to the user. This is useful for calculations that don’t need to be shown but are required for generating the final document.
4. Choose Visibility Option
- To Hide the field, select the Hidden option from the field properties.
- To Show the field but make it uneditable, select Read-Only. This will allow the user to see the calculated result without being able to change it.
5. Save the Field
- After choosing the appropriate visibility option, click Save to apply the changes.
6. Test the Visibility
- Test the form by previewing it or filling it out. Ensure that the field behaves as expected—either visible and read-only or hidden from the user.
Common Issues & Solutions
- Issue: Pluralisation doesn’t work when no children are entered
- Solution: Ensure that the repeatable section is set up correctly, and that the calculation checks for cases where the field count is 1 or more. The logic should not trigger when there are no entries.