Capturing on the frontend the SC "Validate Data" errors

Hi,

I have a form that posts data on a ServerConnect where I have a “Validate Data” step that does 2 checks and return an error message when applicable.

The return message when an error occurs is being returned as follow:
image
image

When binding data on the frontend to an alert, I am able to capture lastError.status (400) and lastError.message (Bad request) correctly, however lastError.response is showing: [object Object] instead of “Clinic already exists”, is it a bug?

Thanks

In the console I am seing this related error:

Just use the on validation error dynamic event with the server connect form and in it add a notify message with the error as text

Thanks @George and if I want to access the message from the Binding feature, how shall I reference it?
Something like lastError.response[2]?

If you want the error message “Clinic already exists” then just enter the validation field to reflect that message

Also ensure some sort of validation is applied to the form field to “create the container” for the error message such as “Required” for example

1 Like