It throws an error when submitting the form:
{ “ErrorInfo” : “”, “ErrorMessage” : “CM01 Property “test” already exists”, “StatusCode” : 400 }
I want to show the “ErrorMessage” value on the page in a notification. I tried things along the lines of: lastError.message.ErrorInfo.ErrorMessage but I can’t seem to find the right syntax.
Hi @karh,
You should be able to do this with a Dynamic event. In the Dynamic Events for the Action select Error, then you could add either a Notification or Toast Component to the page and select it to display if the Dynamic Event returns an Error.
Hi.
After you get the error, open console and try to locate your form component.
Something like dmx.app.data.content.form1.data....
See if you find the error you are looking for in data or lasterror.
Similarly, the network tab entry’s status code will tell you which dynamic event you need to use.