Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime66
Creator
Creator

Disable enter Input Box

Hy Qlikers,

I use an input box with "Predefined value In drop-Down" .

I would like users can't enter a value (even a value in the list) in this box, just a clik to open list.

Regards.

1 Solution

Accepted Solutions
marcus_sommer

I think it's not possible to prevent users to try to enter any values (even if they aren't accepted through the restrictions) - at least not with the inutbox itself. An alternatively could be to put a transparent textbox over the inputbox and just make the drop-down accessable.

Personally I would probably add an error-message to the inputbox, maybe something like this:

"not a valid entry - only listed values could be used"

- Marcus

View solution in original post

8 Replies
jmvilaplanap
Specialist
Specialist

Hi,

You must to check the options "Only predefined values" and add a values list

Capture.PNG

Regards

maxime66
Creator
Creator
Author

I did that already,

but still user can enter a value (not accepted finally).

I would like to lock acces in the input.

Miguel_Angel_Baeyens

In the dialog window above, uncheck "Enable Edit Expression Dialog" and check "Predefined values in drop-down", it will take the values defined in the "Listed Values" box.

EDIT: also check "Predefined Values Only"

marcus_sommer

I think it's not possible to prevent users to try to enter any values (even if they aren't accepted through the restrictions) - at least not with the inutbox itself. An alternatively could be to put a transparent textbox over the inputbox and just make the drop-down accessable.

Personally I would probably add an error-message to the inputbox, maybe something like this:

"not a valid entry - only listed values could be used"

- Marcus

maxime66
Creator
Creator
Author

That's a good trick !

thanks to all of you.

maxime66
Creator
Creator
Author

By the way ,

is it possible to change color of black arrow and get it bigger ?

Miguel_Angel_Baeyens

You can achieve almost this (not the error message but still) by setting up the constraints. It will let the user input something but that "something" will not be stored, going back to the latest selected value or the first according to the list of values.

However if the user has access to the variable overview (i.e.: using Desktop) the variable could be changed there.

I'd rather use a field.

marcus_sommer

AFAIK this couldn't be changed. Like Miguel mentioned a field (within an island-table and created with an inline-load) might be an alternatively to the inputbox and the variable.

By using a multibox or maybe even better by using a table-chart: http://www.qlikfix.com/2014/07/08/building-nicer-dynamic-multibox/ you could get quite near to the inputbox behaviour by being a "bit" more flexible in regard to multi-lines and colors but I fear not to the size of the arrow ... But maybe a normal listbox would then also be fullfill the purpose.

- Marcus