Expand my Community achievements bar.

SOLVED

Limit Text Field!!

Avatar

Level 3

Hi Team ,

I have text filed which will allow user to enter 826 character and re-add the available character count back to each control I want to restrict the user to enter values after character count reaches to zero .Let me know how to achieve this.

Following script is written on the change event of the textfield.

var  val1= TextField1.rawValue.

var len = val1.length;

var count= 826-len;

TextField2.rawValue = count;

Now i have to restrict teh user to enter value after character count reaches to zero.

Thanks,

Bharathi

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Bharathi,

In the Field tab of the Object palette of TextField1 there will be a limit length and max chars options, you should be able to use those.

Regards

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Bharathi,

In the Field tab of the Object palette of TextField1 there will be a limit length and max chars options, you should be able to use those.

Regards

Bruce