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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 - Creator
Partner - Creator

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