I would like to dynamically apply HTML attributes to my form’s input elements.
I am able to manually apply a set number of attributes using the +Add attribute button on the input element’s settings.
When I try to bind the attributes to a variable, nothing happens. I’ve tried several formats, but there’s no expected format validation on this so I’m just guessing.
Is it possible to add boolean attributes in this array as well? e.g. required?
It appears that if the WeWeb component has a setting for the attribute (min, max, required etc), that attribute is ignored.
Is it possible to override those settings? What is the order of operations that they are applied?
I have built a CMS for my team where they can dynamically build a list of HTML attributes for our form inputs. It’s substantially less work for me to bind this entire list - rather than manually clicking through the available settings in WeWeb, doing a lookup in my attribute list, etc.
omitting value from the object does not work, e.g.