Skip to main content
Inspiring
April 28, 2012
Question

Validating a text entry box

  • April 28, 2012
  • 1 reply
  • 217904 views

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.

This topic has been closed for replies.

1 reply

Legend
April 29, 2012

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

tosujoyAuthor
Inspiring
April 30, 2012

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.

Legend
April 30, 2012

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