Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bhanu99
Contributor II
Contributor II

How to restrict the data type in a input box

i have used a variable input in which input box is selected , in this input box , i need only numerical entries, how can i do that ?

Labels (4)
2 Replies
Jan-Hendrik
Partner - Contributor III
Partner - Contributor III

Hi

Data type / validation not available on the Variable Input object

Possible workaround:

- Create a second variable for further use - do validation in this variable, for example

=if( isnum( vFirstInput ), vFirstInput, 0 )

- You can also create a warning message next to the input box, for example

=if( not isnum( vFirstInput ), 'Not a valid number' )

- As an alternative consider choosing the Slider option rather than showing it as a input box

JanHendrik_0-1693600845819.png

Hope this helps

bhanu99
Contributor II
Contributor II
Author

Thanks Jan-Hendrik