Closed AnthonyPhan closed 2 months ago
You can use the logic tab to add custom css to a component based on the value of the component or another component.
Here is a jsfiddle of this behavior
It should be noted that logic does not trigger when using components in the form builder. To have the logic trigger you must use the form outside of the builder e.g. Formio.createForm()
Hi All,
Im trying to change the background color of a component based on its value. Is there a way to achieve this within the formio builder?
I tried setting the className field using handle bars syntax but this does not seen to be interpolated (e.g. {{ data.calcualtedClassName }}