This section of the demo templates shows Freeform handling some real world / common implementations of forms.
Example Name | Description |
---|---|
Populate a form with Current User Data | This example shows you how to populate a form with some User account values from the currently logged in user. |
Populate a form with Craft Entry Data | This example shows how to populate some of a form's fields with some data from a Craft Entry. |
Adjustments to a Date Field Date/Time Picker | This example shows some ways to manipulate a Date & Time field type using Freeform's developer events. |
Suppress Notifications when Editing Submissions | This example shows how to suppress email notifications and other integrations from being triggered when editing an existing submission. |
Overriding Freeform JS behavior | This example shows how to manually override Freeform's built-in JS behavior inside a template. |
Setting Submission Limits | This example shows how to set a limit for the number of submissions a form can have. |
Twig Template Caching on Forms | This example will show how to refresh the CSRF token and other parts of Freeform when using Twig Caching on a template that contains a form. |
Formatting Directly Inside Regular Template | This example shows how you can add formatting code directly inside a regular template. |
Manual Rendering of Forms | This example shows how to manually template a basic form. |
Manual Multi-Page Forms | This example shows how to manually template multi-page forms. |
Multiple Forms in the Same Page | This example shows how you might have the same form (or 2 similar ones) more than once in the same template. |
Form Validation with Parsley | This example will show you how to implement form validation for your Freeform forms with Parsley JS. |
Relating Submissions to Elements | This example will relate the newly created submission to another element via the Freeform Submission relation element field type. |
Freeform Form Element Field Type | This example will show how to display and adjust forms that are assigned to Craft Entries via the Freeform Form element field type. |
Alternate Success Markup from Div after AJAX Submit | This example shows how to override the default AJAX success message and load a success message from a div instead. |
Alternate Success from Template after AJAX Submit | This example shows how to override the default AJAX success message and load a success message from another template instead. |
Overiding Success Return URL | This example shows how to manipulate a form to allow a user to override the Return URL for successful submits. |
Returning Success to Same Page | This example shows how to have a successful submit return to the same page with a success query in the URL. |