
Disable components based on condition
Hi there!
I was wondering if there is a way to disable components based on a condition in the UI builder. I know that this is possible on a Button (by setting "disabled" to true in the style tab) but this is not possible with a text area for example. It's also not possible to disable based on a condition.
I want to disable every input control, including buttons, on a page when a certain condition is met.
I can work around this this rather easily by using html blocks and liquid but this would require me to create a new HTML block for every component. Or is it possible to group components in, for example, a wrapper and set the whole contents for that wrapper on disabled?
How would you guys go about doing this?
Thanks,
Marc
Hi there!
I was wondering if there is a way to disable components based on a condition in the UI builder. I know that this is possible on a Button (by setting "disabled" to true in the style tab) but this is not possible with a text area for example. It's also not possible to disable based on a condition.
I want to disable every input control, including buttons, on a page when a certain condition is met.
I can work around this this rather easily by using html blocks and liquid but this would require me to create a new HTML block for every component. Or is it possible to group components in, for example, a wrapper and set the whole contents for that wrapper on disabled?
How would you guys go about doing this?
Thanks,
Marc
Login to reply