Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

maxime66
Contributor

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
MVP & Luminary
MVP & Luminary

Re: Disable enter Input Box

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
Valued Contributor

Re: Disable enter Input Box

Hi,

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

Capture.PNG

Regards

maxime66
Contributor

Re: Disable enter Input Box

I did that already,

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

I would like to lock acces in the input.

Re: Disable enter Input Box

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"

MVP & Luminary
MVP & Luminary

Re: Disable enter Input Box

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

maxime66
Contributor

Re: Disable enter Input Box

That's a good trick !

thanks to all of you.

maxime66
Contributor

Re: Disable enter Input Box

By the way ,

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

Re: Disable enter Input Box

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.

MVP & Luminary
MVP & Luminary

Re: Disable enter Input Box

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