Hi,
I need to validate a field using a algorithm (on client side).
Is it possible to do it, using Javascript?
If the condition is not match, the chat remains on the same question.
Thanks
Hi,
I need to validate a field using a algorithm (on client side).
Is it possible to do it, using Javascript?
If the condition is not match, the chat remains on the same question.
Thanks
Hi,
We do not have such a feature now. We will consider adding it in future.
May I know what is your use-case?
Regards,
Shyjal
I want to validate a brazilian id document number (CPF).
To validate it I must use a algorithm.
I wast thiking to use this callback: collectchat.on(“message”, function).
Then if the function returns true or false I will use this method collectchat.message(message) to jump or to stay on the question.
Maybe it will work, i’lll try.
Yes, you can use JavaScript to validate a field on the client side and keep the chat on the same question if the input doesn’t pass the check. If you’re testing CPF validation, a gerador de CPF para testes can help you get sample numbers to check how your form handles different inputs.