HPE Service Manager / Service Center Support and News Forum
Showing results for 
Search instead for 
Do you mean 

Form Designer , Text accept only number

Frequent Advisor

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

 

3 REPLIES
Honored Contributor Honored Contributor

Re: Form Designer , Text accept only number

You can make input for that field of number type.

Advisor

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

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