Create a single form to add and update data
Last updated
Last updated
© 2024 UI Bakery
If you need to save some space on the working area, instead of creating two separate forms for adding and updating data, you can achieve that with a single form. Here's how to do that:
Drag a Form component to your working area. To populate the data of a table's selected row, specify {{ui.employeesTable.selectedRow.data}}
in the form's Data field;
Add a new multi-step action - Condition. In the code field, specify the code:
3. For a True condition, add an Update Row action.
4. For a False condition, add a Create Row action.
5. In the Triggers section, assign the action that loads your data On Success trigger to update the data in the table.
6. Finally, assign the add/update action to the On Submit trigger of the form: