Form Reform Image Picker provides an Image Picker input block for Form Reform.
In our example below, the radioset has been replaced with an Image Picker input. We then have an Omni Gallery showing some image thumbnails to choose from. Which image would you like to choose?
Feel free to submit the form as often as you want. The form is saved to your session, but the data is not saved or logged anywhere else. All it does is validate the inputs and return a success or error message. The session data facilitates persistence of some inputs, so you only need to enter your name and email once.
Submit processing is handled by a similar pipeline to that used in Getting Started - Your First Form. The small difference is that we have an image noted by the File Manager ID fID.
The Image Picker input is also compatible with Multi-step forms, AJAX forms and can be used in Repeatable Groups of input fields.
The pipeline shown below is a front-end non-editable version of the pipeline used to handle the above form. You can expand any stages to view the details. The submitted form is only saved to your session.
The Condition If section towards the end of our pipeline is to add a display of any UTM tags, as described in Example - Tracking UTM tags. If you are not using Form Reform UTM, you can ignore that part of the pipeline.
|
|
|
|
|
|
|
|
In edit mode, the blocks for the form are identical to those in many of our other examples. The only changes necessary for this simple form are the substitution of an Image Picker form input instead of the radioset and the addition of an Omni Gallery to pick images from.
Whilst we have used Omni Gallery to pick images from, The Image Picker form input can be attached to many other blocks that list images, such as the Core Image Gallery, many Page List templates, and pretty much any gallery, slider or carousel block as long as it has a CSS selector for the overall container, for each item, and for the image within an item.
We have also used block design to add the class jl_form_reform__form_reform_hide_when_success to the Omni Gallery so that it is not shown when the form is successfully submitted.
Source Page / Stack | Form Name | Block Type | Input Name |
---|---|---|---|
Example - Picking Images | form_reform | Text Input | first_name |
Example - Picking Images | form_reform | Text Input | last_name |
Example - Picking Images | form_reform | Select Input | pronoun |
Example - Picking Images | form_reform | Email Input | |
Example - Picking Images | form_reform | Message Display | |
Example - Picking Images | form_reform | Spinner | |
Example - Picking Images | form_reform | Image Picker Input | images |
Example - Picking Images | form_reform | Text Area Input | message |
Example - Picking Images | form_reform | Honeypot | more |
Example - Picking Images | form_reform | Captcha | |
Example - Picking Images | form_reform | Submit Button | submit |
If you need a specialized template or a custom input element, you can design new templates or new block types for form elements as you would any block type.
Blocks are easy for third party addition or extension. Block templates and are the first thing any Concrete CMS developer learns to code. They are one of the easiest things to code. The underlying mechanisms are well established and reliable.
Form handlers are built about the same extensible plugin system as many of my other addons (Universal Content Puller, Omni Gallery, Extreme Clean ...).
The whole system is aimed at easy extension within Form Reform, by third party addons, by agencies and by site building developers.
Handlers can be easily added to do whatever you want with the form data.
Saving form data with Form Reform is simply a handler in the processing pipeline. You can save to multiple locations or just one location.
If you need to save data elsewhere, such as to a dedicated table, a table provided through another addon, to another database, send it to an API, forward it to another server, or anywhere you can imagine, you can adapt or develop a form handler to do so.
The complexity of the code depends on where you are saving or sending the data, but wrapping that into a form handler plugin for Form Reform is straight forward.
The Form Reform handler plugin system is designed for easy extension.
Reform the way forms are built. Build a form out of blocks. Take control of how form submissions are processed and how the submitted data is stored. Easy to extend. Easy to reconfigure. Tangible data. Easy to add your own integrations.
List and display form submissions from Form Reform.
Not just Form Reform and not just UTM! Capture and hold incoming UTM (or other) tags and make the tag values available to Form Reform and/or Conditional Redirect as {{place_holders}}. You don't need Form Reform to use this.
Form handlers for querying Microsoft Dynamics, forwarding and updating form data to Microsoft Dynamics.
A suite of advanced image capture and upload tools. Enhanced drag and drop file uploading. Make screengrabs from within Concrete CMS. Capture images directly from device webcams. Edit images before uploading.
Save submitted forms to Express objects and user attributes. Add and remove users from groups.
Form Reform Image Picker provides an image picking input block for Form Reform. The Image Picker Input is preconfigured to connect to most Omni Gallery gallery and slider display widgets, the core gallery block, and thumbnail showing templates for the core page list block. Advanced settings allow the Image Picker Input to be configured to pick images from other galleries and sliders.
Form Reform Data Picker provides data picking input blocks for Form Reform. The Table Picker Input is preconfigured to connect to Universal Content Puller table display widgets. Advanced settings allow the Table Picker Input to be configured to pick data from other HTML tables.
Extends Form Reform with form handler macros. Provides a new dashboard page at System & Settings > Form Reform > Form Reform Macros to manage macros, and form handlers to run macros.
A growing suite of resources to assist those developing blocks, handlers and more complex forms for Form Reform.
While you may have plans to implement some much more complex forms using Form Reform, we strongly recommend you start with a simple form such as our contact form example in order to review the basic principles of using Form Reform before you move onto anything bigger.
Comment