Closed sanguedemonstro closed 1 month ago
Hi @sanguedemonstro! Your approach is correct. The error-messages
field is mentioned in the docs here https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson#form-configuration
I think it can be improved by adding some examples. Will raise it with the concerned team.
It would be great if we had examples of server side data validation, and how to return those validation messages for a given data field, as well as the flow json compatible with that kind of data-exchange response..
For those who are struggling with this scenario, I achieved that by doing the following steps. But be aware that I am not sure if that's the correct way to do that, once I didn't find a clear documentation, so..
data_exchange
action response whenfield_a
andfield_b
are not valid:Flow JSON, with dynamic
error-messages
:If there is another way to do that, please let me know! Thanks