Form Validation: Using a Flow Within a Form
Comments
-
I want to validate any modifications made to fields within a form from the values passed through initially from the database and depending on if there is any change to the fields (if a button in the form is clicked without saving) I want a sub-dialog to appear which asks the user if they want to save changes made or not. If they select yes, then, I want the form to be saved.
Do you have any idea if this is possible in decisions?
-
Yes, this is possible to do. For checking the data pre-populating the form and testing it against what the user inputs, you could use a data flow. You could use a Fetch Entities step to get the data already saved to the database, and then add inputs to that data flow representing the users inputs. You would have to add rule steps or create rules in order to check if the saved data and input data are the same.
As for a sub dialog for confirming saves, there is a way to make a sub dialog button and sub dialog form work similarly to a regular button and a confirmation message. You would have to use an outcome rule for this method. Results in the sub dialog could set a variable on the form that satisfies that outcome rule, and will in turn close the main form and save. Additionally, if you would like that sub dialog form to skip popping up if there were no changes to the fields, then you could add rules within the sub dialog flow.
Here are some documentation that may be helpful to you:
Outcome rules: https://documentation.decisions.com/form-outcome-rules/
Sub dialogs: https://documentation.decisions.com/sub-dialog-data-flow/
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions