I’m pretty new to Make.com and still trying to get the hang of it, so apologies if the question is a basic one.
I have a webhook I’m getting from Wix with an array of 2 custom form fields that look like this:
“custom_form_fields”: [
{
“label”: “Number of children (if any):”,
“value”: “3”
},
{
“label”: “I’ve read the T&C”,
“value”: “true”
}
I need to extract the value of the “number of children” field, but the thing is that it doesn’t always exist. If the customer doesn’t type anything and the field is empty, I only get the “I’ve read the T&C” field and the children one doesn’t exist.
I tried to do this with an Iterator and then a router with a filter (and then combining it back), but I’m pretty sure there’s a better way I didn’t think about.
Please find the function attached; copy/paste it to your scenario and replace the custom field array with the array from a Wix module.
{{first(map(17.custom_form_fields; “value”; “label”; “Number of children (if any):”))}}