Skip to Content
0
May 15, 2020 at 07:34 AM

CAI Requirement Validator Issue

82 Views

Dear Colleagues,

I am facing a strange issue w.r.t validators.

I am basically taking a number as user input. If the user provides anything that is not a number, I want my validator to send a simple reply.

caivalidator.png

If i provide a number say user input is "12345" with the condition if #number.scalar matches ^[0-9]*, the validator gets triggered.

But I want it to trigger when it does not match the regular expression.

So, If i say user input is "ab12345", with the condition if #number.scalar matches-not ^[0-9]*

it does not trigger anything. It instead goes to the default fallback skill.

Can you please advise on the right way to use validators.

My requirement is basically simple and I just want to do something with validators if the user enters a non numeric invalid value.

Thanks & Regards,

Sharat Chandran

Attachments

caivalidator.png (33.7 kB)