- Kentico EMS & Xperience
Hiding a widget property in Kentico Xperience Admin
In this post, I will share a tip on how to hide a widget property in the Xperience Admin while it is still available in the backend code.
Considering the following scenario
I need to have a property in a widget. I want to make that property always hidden in the UI. However, I want to be able to work with that property in the backend code. For example, set its value in a view like:
Loading...Solution
The solution is to add a VisibilityCondition to the property and create a custom visibility condition that always returns false.
Code example
Widget property definition:
Loading...Visibility Condition definition:
Loading...