Can I validate inputted text?
Status: Open ยท Asked by Kamlesh Pokiya on ยท 0 views
Hello,
Thank you for reaching out to Pabbly Support!
To assist you better, please elaborate on the issue you are currently facing in Pabbly.
This information will help us investigate and provide you with a more accurate solution.
Looking forward to your response.
Thanks & Regards,
Hrishabh
Customer Support Associate
๐ Pabbly.com
๐ Rate your support
I have a workflow where I receive information from a website chat widget (the widget is from Charla). I have already completed the process of storing all the information I receive in Bravo.
However, I also receive a mobile number from the widget. I need to validate whether the number is valid and whether it contains a country code. If it does not contain a country code, I need to add one.
How can I do this?
Hi Kamlesh,
You can validate and format the mobile number using Text Formatter by Pabbly along with Filter or Router steps before sending the data to Bravo.
Here is the step-by-step workflow setup:
Step 1: Extract Digits (Clean the Input)
Add an action step right after your Charla trigger: Text Formatter by Pabbly.
Select Action Event:
Extract NumbersorReplace Text(to remove any spaces, dashes, or non-numeric characters).Map the phone number field received from Charla.
Step 2: Check Number Length or Country Code
Add a Router by Pabbly (or Filter by Pabbly) to handle numbers with and without a country code:
Route 1 (Missing Country Code):
Condition: If the character length of the extracted number equals 10 (or doesn't start with
+).Action: Append your default country code (e.g.,
+91or+1) directly before the mapped number field in your next step (e.g.,+91{{extracted_number}}).
Route 2 (Already Has Country Code):
Condition: If the character length is greater than 10 (or starts with
+).Action: Pass the phone number as is.
Step 3: Save to Bravo
Map the final formatted phone number output into your Bravo action step.
Please let us know if you need help configuring the specific filter conditions or text formatting options!
Thanks & Regards,
Hrishabh
Customer Support Associate
๐ Pabbly.com
๐ Rate your support