Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
coleturegroup
Contributor III
Contributor III

How can I stop users from unlocking a locked field?

Once a field is locked, is there a way to disable the unlock grey area that sez: Click to Unlock?

coleturegroup_0-1732739087050.png

Possible using helper objects tied to some code, I know we can add CSS code to hide that bar, maybe change with width of that field to zero or DISABLE the unlock feature using CSS. any examples would be awesome. 

Any ideas?

Labels (2)
5 Replies
Frank_S
Support
Support

You can use the 'always one selected' feature.

1. chose the dimension value that you want to lock

2. edit the sheet

3. find and right click on the dimension

4. choose field settings

5. select the always one selected checkbox.

 

 

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
seanbruton

Hi,

 

if you are using locking fields as a security feature. Then section access is a good pathway.

If you what to lock it for that page you can use the value in a variable can pass it in the expressions this will not show on the top selection bar.

Dependant on your Qlik Sense version, but in Saas you can in the app setting on top hide the selection bar. Then add a button or buttons to clear or drive the key selections. 

if this is something you are keen on I can add more  detail.

coleturegroup
Contributor III
Contributor III
Author

Thanks but the solution you defined will allow users to change filters once set and that will defeat locking the field.

But thanks for contributing

nimishpgupta
Contributor II
Contributor II

you can achieve this using a drop down and multi kpi.

1. Create a drop down with the desired field

2. Create a multi KPI with measure as 1

3. In Style section of Multi KPI include css code to freeze dropdown

4. Also include CSS code to hide Multi KPI.

5. Make the dropdown field hidden so that user cannot change it from selections.

nimishpgupta_0-1733093564090.png

nimishpgupta_1-1733093642383.png

 

 

Matt_Whitehead
Contributor
Contributor

Just wrote some css that you could use (via the styles in multi kpi object) 

button[data-testid="listbox-unlock-button"] {
display: none !important;
}