- I have a webhook module on a “join form” on my site, that I hooked into my accounting platform to setup the new client account.
- One of the form fields is “VAT no.” The form on my site only checks the value is numeric, but the accounting platform’s validation is more complex. They are quite tolerant regarding the other form input.
- I’d like to be able to resume the request with an empty “VAT no” value (they’ll accept an empty field).
The question in this - when I add the “Resume” handler for that error - do I have to re-map ALL the fields, or just the one that failed the validation?
Welcome to the Make community!
You can map all the fields that you want passed to the next module. The omitted ones will be left empty.
Instead of expecting an error, you could also reformat your numeric vat no. into the required format.
2 Likes
Thanks for the quick reply. I suspect the required format is a bit tricky to check (not just the length, for instance), so since the VAT number is optional, I opt for just omitting it.
I’m sorry, I didn’t understand your answer… The question is do I have to (map these fields)?
Let’s assume the web form has 4 fields: (1) first name, (2) last name, (3) mobile, (4) VAT number. Fields 1-3 are required, but other than that every input is valid. Field 4 is optional, but if not empty - must pass validation.
So the only data error here will be the VAT number. In this case, is it enough to map just this field in the “Resume” handler, or must I map the others too? what will happen if the others will be left empty?
You don’t have to (you can choose not to).
But if you want to use the variables in a later module, you have to pass the fallback values you want into the resume module.
If you omit the fields the scenario will continue with empty variables, from the failed module.
So, I think you should remap the each field variables, excluding the field you want to leave empty.
2 Likes