Hi everyone,
I have a form in Wix Studio where users enter the type of furniture they need. Often, they include commas in their responses.
The issue is that I’m using Pabbly to send WhatsApp messages, and Pabbly treats commas as separate parameters. Because of this, messages fail to send properly whenever a user includes multiple options separated by commas.
I’m looking for a way to automatically replace commas with dots (.) when the form is submitted, so that the data sent to Pabbly does not contain commas and the messages go through without errors.
Is there a way to modify the form’s code so that whenever a user enters a comma and submits the form, it is replaced with a dot before being sent to Pabbly via a webhook?
Any help would be greatly appreciated!
Thanks in advance!
you could add a conditional rule to the form so that if message includes a , then the submit button is hidden.
1 Like
You can solve this by using Velo (Wix’s coding platform) to modify the form submission before sending it to Pabbly. Add an onClick event to the submit button, and before sending the data, use JavaScript to replace all commas with dots:
$w("#inputField").value = $w("#inputField").value.replace(/,/g, ".");
Then, send the modified value via your webhook. This ensures that user inputs are properly formatted, preventing errors in Pabbly’s parameter handling.
1 Like
Could you maybe help me further with this? I’m not very good at coding.
yes sure i can help you with that would you like to set up a meeting for that ?
1 Like
Yeah, sure! I’d really appreciate it. What time suits you? I can set up a Zoom meeting or something else if you prefer.
sure would do that would you mind connecting me on fiza.astrosia@gamil.com