Collapse and expand sections of a form.
Play with the example below to see what you can do:
Open this example as a template so you can see how everything works in the Editor.
This example demonstrates how to integrate collapsable sections into your forms.
The form collapses and expands the Price section depending on whether the user checked or unchecked the Sort by Price checkbox.
The collapsing layout works by placing the elements of the section that can be collapsed in a box element. We use the onChange event of the checkbox to call the box element’s collapse and expand functions.
Open this example in the Editor to work with the template.
Publish the site.
Learn how to work with examples in Corvid.
To start using Corvid: Go to the Wix Editor > Dev Mode > Turn on Dev Mode