How can add custom validation?

How can we add custom validation? by using currect step name and value?
How we can get the current or previous step name and value in a next function call?

1 Like

Currently, custom validation is supported on the platform. I’d love to forward this feature request to the team if you can please share what are you trying to validate in the bot?

Alternatively, you can write a custom function to validate the user input: Code |

This is the usecase. WhatsApp BOT which supports for more than 10 countries. we need to validate phone number based on country selection. In studio we have option to validate based on single country. If we have option to custom validation, based on country we can have validation.

1 Like

In this case, it seems like you need to write a custom code for validation.
Please feel free to reach out to me incase you need any help.