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: 
Not applicable

How to keep field selection locked even if clear button pressed

is there an easy way to do this or do I have to use macros, variables, etc.?

8 Replies
Not applicable
Author

you need to make the selection you want to lock, then right botton and then lock., to unlock, same thing but with unlock.

greetings!!

Not applicable
Author

the problem is that if the user clicks on clear, the locked fields also get cleared.

Not applicable
Author

No, it does not, post your app and I´ll lock it if you wuant.

Not applicable
Author

Usually when you lock the selection and click on Clear. The locked selection stay selected.

Not applicable
Author

You can also set a trigger to automatically lock a field when the user opens the document.

beanmachine
Partner - Contributor III
Partner - Contributor III

As scott-phl said, you can set a trigger to do this.  There is also another way.

Try this.

1. Clear all selections

2. Make the selections you want

3. Using the drop down under the 'Clear' button, select 'Set Clear State'

Now, whenever the user hits the clear button the selections you made will automatically be applied

Sokkorn
Master
Master

Hi Juan,

Maybe I miss understand what you looking for.

Let try this case

+Case1 : Lock ListBox

1. Select one value in List Box ==> Right Click on List Box ==> Properties ==> Check Always Select One Value

Untitled.png

+Case2: If you have select any field value when open document

1. Setting ==> Document Properties Triggers ==> OnOpen ==> Follow below

Untitled2.png

Untitled3.png

Regards,

Sokkorn Cheav

wmarkett1983
Contributor II
Contributor II

Just lock it again by trigger if the user unlocks it...

Document Properties --> Field Event Trigger --> choose the field(s) --> OnUnlock --> Action: Lock Field.