Validate Data Using Javascript on Client Side


#1

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


#2

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


#3

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.