Validate Data Using Javascript on Client Side

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.