Use Form Control to Add Value to Attribute
Posted: Fri Dec 02, 2022 3:18 am
Hello!
I'm trying to implement a form control to let authors easily control the values of the @outputclass attribute. I'd like for them to be able to add a variety of attribute values in a variety of combinations. For example, I'd like for them to be able to set the @outputclass for an image directly in Author Mode to various combinations of float-left, box-shadow, and thumbnail.
I've tried using both oxy_checkbox and oxy_combobox, but both of these directly overwrite the entire @outputclass values with the selected value instead of simply adding the value.
Essentially, I'm wondering if there's a way to simply append a value to the existing attribute values instead of entirely overwriting the attribute values.
Thanks!
Daniel
I'm trying to implement a form control to let authors easily control the values of the @outputclass attribute. I'd like for them to be able to add a variety of attribute values in a variety of combinations. For example, I'd like for them to be able to set the @outputclass for an image directly in Author Mode to various combinations of float-left, box-shadow, and thumbnail.
I've tried using both oxy_checkbox and oxy_combobox, but both of these directly overwrite the entire @outputclass values with the selected value instead of simply adding the value.
Essentially, I'm wondering if there's a way to simply append a value to the existing attribute values instead of entirely overwriting the attribute values.
Thanks!
Daniel