How to capture the success/failure of Display Form submittal
The Display Form activity has an output of 'result' that captures which button was clicked in the form, e.g. 'submit' or 'cancel'. Is it also possible to capture the success status of the submitted form? I.e. whether or not a form submittal was successful or failed? I tried logging the output 'state' but didn't have any luck converting it to a JSON string. Not sure if success/failure would be captured in 'state'?
-
Use the 'Set Form Element Error' activity inside the 'validate' event for each DisplayForm item (don't forget to 'Clear Form Element Error'). Then the user gets a helpful message of what is required.
You should be able to get autocomplete suggestions out of the state of the form... =$form1.state.
A handy trick for discovering the json is to log it though, make sure you throw the object through the "Convert To JSON" activity first though.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire