Adding conditional logic to forms
Whether you need to collect clarifying details, adjust choices dynamically, or create personalized paths based on user input, Formsort provides the flexibility to improve the experience and gather precise data.
Use case: When a respondent answers "Other" to a question.
Application: Automatically show an input field to gather additional information or specification.
Use case: Choices within a select question that depend on previous responses.
Application: Display or hide specific options based on the responder's earlier selections, ensuring relevance and clarity.
Use case: Applying logic to an entire step or page in the form.
Application: Show or hide a group of questions based on specific logic. This is useful when the same logic applies uniformly to all questions within a step.
Use case: Grouping questions based on certain criteria (e.g., gender).
Application: Show or hide an entire group of steps relevant to a specific category.
Use case: Redirect based on responses or conditions met during the form.
Application: Conditionally redirect responders to specific URLs based on their answers. This ensures that the responders end up in the relevant paths.
Conditional calculated variables
Use case: Decide when to calculate a variable based on conditions.
Application: Dynamically calculate variables in real-time based on specific conditions met during the form-filling process, allowing for accurate and context-specific data.
Form logic - from basic to complex
Simple logic allows you to render or hide a question based on the user's earlier responses in the flow. It supports multi-clause conditions and enables nested logic through grouping.Try now
For complex scenarios you can use advanced logic to define arbitrary boolean expressions over the answers by utilizing MongoDB query and projection operators.Try now
Leverage API variables to create logic for conditionally rendering steps with external data. You can then use the data to create logic to conditionally show / hide elements in the form.Try now
Form template examples with conditional logic
Quickly launch forms for personalized responder journey using our ready-to-use templates.
Build dynamic forms with Formsort
Partially completed forms
Get partial form responses and re-engage leads who gave up halfway through
Validate responder data with custom validators, and provide custom error messages
Limit access to your forms to authenticated users
Create forms that match your brand and website design
Allow users to return to a form and continue from the furthest point
External (hidden) fields
Pass data into your forms and pre-fill fields from external sources, including UTM params
HIPAA-compliant form builder
Collect sensitive medical information securely