Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
sathishkumar_go
Partner - Specialist
Partner - Specialist

Input Field - Is it possible to restrict the values in Input field

Hi All, Is it possible to restrict the values in Input field? Example : User can enter the "0" or "1" in the input field. Regards Sathish

6 Replies
manojkvrajan
Luminary
Luminary

Yes. Very much possible. Attached is the example for your reference.

sathishkumar_go
Partner - Specialist
Partner - Specialist
Author

Manoj, Please try to understand my question. I want to restrict in "Input Field" not Input Box. Regards Sathish

sathishkumar_go
Partner - Specialist
Partner - Specialist
Author

Manoj, Please try to understand my question. I want to restrict in "Input Field" not Input Box. Regards Sathish

Manoj, Please try to understand my question. I want to restrict in "Input Field" not Input Box. Regards Sathish

Gysbert_Wassenaar

No, input fields cannot be validated. Only the data type is checked. Restricting the input field to a set of values is not possible.

Input fields are not to be confused with input boxes. The value assigned to variables with input boxes can be restricted and validated on input.


talk is cheap, supply exceeds demand
manojkvrajan
Luminary
Luminary

I got it.. Gysbert is correct in regards with Input field validation

Not applicable

You could try to at least alert the user to invalid input through highlighting.

If you load the input field in the script a second time to track the original value, then you can compare the current input value against the original value and highlight accordingly. You could also conditionally show a text box in a similar way.

if(FactType='Actual',Black(),if(avg(iASPGov15)<>avg(origASPGov15),lightRed(),lightBlue()))