Introduction:
Show/Hide fields with a custom button click - Modern Designer
Add a Custom HTML field to your form.
Select the Code View.
Copy and paste the HTML code from the Laserfiche Advent Calendar Day 6.
This will create a "Show Additional Fields" labeled button.
Select CSS in the top right corner.
Copy and paste the CSS code from the Laserfiche Advent Calendar Day 6 into CSS to apply styling to enhance your button.
Select JS in the top right corner.
Copy and paste the JavaScript code from the Laserfiche Advent Calendar Day 6 into JS to apply button functionality.
Add a single line field for the JavaScript to send a value to. (Hide this field)
Replace "ID" with the field ID from the single line field.
Add show/hide rules to any fields based on the value of the single line field as "Additional".
Stop by every day for more holiday fun on the Laserfiche Advent Calendar.