hostmason-drag-drop-form-builder
v1.0.0
Published
Drag and drop form builder for Saltcorn
Downloads
27
Maintainers
Readme
Hostmason Drag and Drop Form Builder for Saltcorn
This plugin provides a drag and drop form builder for Saltcorn, allowing users to easily create custom forms by dragging and dropping fields.
Installation
- In your Saltcorn instance, go to the "Plugins" section in the admin panel.
- Click on "Add Plugin".
- Enter the following URL:
https://github.com/hostmason/hostmason-drag-drop-form-builder
- Click "Install".
Usage
Once installed, you can use the Drag and Drop Form Builder as follows:
- Create a new view or edit an existing one.
- Select "DragDropBuilder" as the view template.
- In the configuration, specify the "Allowed Fields" that you want to be available for dragging and dropping.
- Save the view.
When viewing or editing the form:
- You'll see a list of available fields on the left side.
- Drag fields from this list and drop them into the form area on the right.
- Arrange the fields in the desired order by dragging and dropping within the form area.
- Remove fields by clicking the "X" button next to each field.
The form state is automatically saved as you make changes.
Displaying the Form
To display the form in your Saltcorn application:
- Create a new page or edit an existing one.
- Add the DragDropBuilder view you created to the page.
- The form will be displayed with the fields you arranged using the drag and drop interface.
Customization
You can customize the appearance of the form builder by modifying the CSS in public/drag-drop-builder.css
.
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.
License
This plugin is released under the MIT License. See the LICENSE file for more details.