Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Input Box Constrain

Hi

I have a challenge around input box.

I have constrain it using Isnum($) and $>0, however, I want to further prevent users from inputting --1 to -10. Basically prevent any negative number going into input box

Any idea will be much appreciated.

Thanks

4 Replies
tresesco
MVP
MVP

$>0 condition does that itself. Isn't it ?

Not applicable
Author

Hi tresesco,

Thanks for reply.

$>0 works for signle negative (-1) however it doesn't work for double negative, i.e. --1.

cfz
Former Employee
Former Employee

Hi James,

Sorry if I am missing something. What do tou mean for dubble negatives? --1 is the same as 1 isn't it? That is why it deoesn't work.

Regards

Carlos

tresesco
MVP
MVP

--1 is actually being taken as text. So I guess you can try the standard constraints -'Positive Intergers'.