Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Restrict the user to enter number of digits in inputbox

Dear Community.

How can we restrict User to enter only equal to 4 digits value in input box.

suppose:

Year is in inputbox user need to enter the Year value like 2013.

if he enter less than 4 digits or more than 4 digits the input box need to prompt a message like Please enter only 4 digits.

and same for Month=2 digits

and same for Date =2.digits

Thanks,

Mukram.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

On the Constraint tab select Custom and use this expression: isnum($) and len($)=4

Check Error Message and enter your prompt message.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

On the Constraint tab select Custom and use this expression: isnum($) and len($)=4

Check Error Message and enter your prompt message.


talk is cheap, supply exceeds demand
Not applicable
Author

Dear Gysbert Wassenaar,

Thanks for your help.

it's working perfectly.

Thanks,

Mukram.