Re: Form Designer , Text accept only number (295 Views)
Reply
Frequent Advisor
Posts: 82
Registered: ‎05-05-2010
Message 1 of 4 (346 Views)

Form Designer , Text accept only number

Hello,

 

We have a situtation were we need the user to enter the extension number in the submit request page in ESS.

 

We need to user to enter 4 digits only, so how can we limit the text field to accept only numbers ?

 

Thanks in advance,

Br,

Islam Nofal

 

Honored Contributor
Posts: 5,899
Registered: ‎11-10-2008
Message 2 of 4 (331 Views)

Re: Form Designer , Text accept only number

You can make input for that field of number type.

Advisor
Posts: 11
Registered: ‎10-31-2011
Message 3 of 4 (309 Views)

Re: Form Designer , Text accept only number

KM44531 - lists the input and output conversion functions.

KM40483 - a sample on how to format text as $99,999

 

try setting the "input conversion" to input.number

You might have to make a validation that makes sure all the text is numeric.

 

Highlighted
Frequent Advisor
Posts: 36
Registered: ‎09-11-2013
Message 4 of 4 (295 Views)

Re: Form Designer , Text accept only number

Hi Islam,

 

I believe what you need is lng(your.field)=4 and rtecall("isnumeric")

 

For reference on how to use "isnumeric", please check the link below:

 

https://smfdor.saas.hp.com/help/topic/tailor/system_language/reference/rtecall_isnumeric_function.ht...

 

Best Regards,

Miro

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.