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

Lock/Unlock a field depending on selections in another field

Hi Community

I've two fields in list boxes - Product and Region.

My requirement is to force users to select a product prior to selecting a region.

For this I guess I've to lock the field region when there is no selections in product and then unlock it as soon as selection(s) is made on Product and repeat.

Please advise a way to achieve this.

*** I don't want to show/hide Region based on selection in Product.

*** I don't want to Hide the Region field with a text object.

Thanks! in advance

-Sneh

17 Replies
jyothish8807
Master II
Master II

It will clear, since i am not locking any fileds. I just forcing the user to select a product prior to Region

Best Regards,
KC
PrashantSangle

Try below

1: create list box with expression as

aggr(product,product)

or

2: List box with product

go to property > general > hide excluded

This way you will show only data from Product which related to selected region only

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
ashish_2511
Creator
Creator
Author

This fulfills just part of my requirement.

when you select a product and then a region and then deselect product, the selection in Region stays (both list boxes Read-only checked or unchecked)

ashish_2511
Creator
Creator
Author

Thanks! but this this doesn't serve my purpose.

As I've mentioned above -

when you select a product and then a region and then deselect product, the selection in Region stays

jyothish8807
Master II
Master II

Try this

I have added on trigger

Best Regards,
KC
jyothish8807
Master II
Master II

Did this worked ?

Best Regards,
KC
ashish_2511
Creator
Creator
Author

Yes this worked Thanks!

I'd totally disregarded the on any select trigger. I was just trying to make it work with field event triggers.

jyothish8807
Master II
Master II

Happy to hear it worked

Have a great weekend.

Best Regards,
KC