Disabling buttons when using a Data Repeater
Assume that I have a data repeater with fields that are required and that need to meet certain validation conditions.
I would like the "Add Data" button to be disabled if the selected item in the Data Repeater has fields that are empty or that do not pass their validation rules.
The idea is to prevent the Users from clicking the Add Data button again before properly completing the item they started working on.
Obviously, the button needs to be re-enabled once the conditions above are no longer met.
How can I do that?
Comments
-
You're going to want to create an Active Form Flow on your parent form that will determine whether or not there is any data inside of all data fields inside of your repeater.
This AFF should run whenever the data repeater changes in any way, and will use the Enable/Disable + Is Empty control steps (which will be point to your Add Data button) based on if every field has been filled out or not.
Set up the AFF to be trigger when values are changed and have it run on submit.
The fields we will want to evaluate are from the Selected Item in the Data Repeater.
The rule will be set up using an Either/Or Group to return false if any variable is empty.
If false, we will want to enable the Add Data button. If true, we will want to disable the Add Data button.
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