• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

Validating a text entry box

Explorer ,
Apr 28, 2012 Apr 28, 2012

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.

TOPICS
Advanced

Views

217.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 28, 2012 Apr 28, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2012 Apr 29, 2012

Copy link to clipboard

Copied

Thanks, Jim, I thought you would reply, wanted to give the same suggestion.

Lieve

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 29, 2012 Apr 29, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 30, 2012 Apr 30, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources