I am trying to program buttons on a form to have the following Buttons
- Save: If the thing doesn’t exist, “Create New Thing” then End Workflow; else “Make Changes to Thing” then End Workflow
- Save & Close: If the thing doesn’t exist, “Create New Thing” then Navigate Go to Previous Page then End Workflow; else “Make Changes to Thing” then Navigate Go to Previous Page then End Workflow
- Cancel: Navigate Go to Previous Page then End Workflow
Problems:
-
How to check if the thing exists already? I am happy to have duplicate names etc so what to use the Unique ID to check
-
How can I set a Step 2 (Make Changes to Thing) to only run if Step 1 didn’t run due to failing only when the condition and if Step 1 runs, ato advance to step 3 etc.
-
If I use an Autosave after say 10 seconds, how can I make this not make a thing if it doesn’t already exist or if it has to make a thing, delete the thing if it is cancelled without ever clicking save or save and close, ie user changes mind and never makes the record
-
If I use an Autosave and the user cancels, how can I ensure that the Autosave hasn’t
overwritten the data from when the thing’s record was opened. Ie changes that have been autosaved are reverted