Copy link to clipboard
Copied
In the Text Entry Box field, I want to restrict the user to type SD1234 text. Where first two characters should be "SD" and rest can be any numeric values. Please suggest if I can achieve this validation through IF condition of the advanced action.
Copy link to clipboard
Copied
Hi Sujoy,
This is possible with the TEB Validator widget.
Here's a live demo displaying your specific use case:
http://CaptivateDev.com/demo/Cp5/Sujoy/TEBValidator.htm
Here's a link to the Cp 5.5 project:
http://CaptivateDev.com/demo/Cp5/Sujoy/TEBValidator.zip
Here's more info about the widget:
http://captivatedev.com/2011/04/11/adobe-captivate-5-widget-text-entry-box-validator/
Let me know if you have further questions.
Thx,
Jim Leichliter
Copy link to clipboard
Copied
Thanks, Jim, I thought you would reply, wanted to give the same suggestion.
Lieve
Copy link to clipboard
Copied
Thanks Jim,
Let me talk to my manager regarding the purchase of the widget. Im also trying to achieve the validation through javascript. I shall be glad if someone can suggest a solution through Advanced Action or javascript.
Copy link to clipboard
Copied
One thing you'll find that you can't do through JavaScript is to fire off an advanced action if you're validation is successful. That's where the widget provides value.
Jim Leichliter