Adding custom HTML attributes to widgets

0
Can I add custom HTML attributes such as “data-test” or “aria-label”. Like I want to add for the button widget a “data-test” attributes and this way edits the html of the button like this: <button data-test= submitButton>Submit</button>”. If I can add it, can you show me how to do it with images?
asked
2 answers
0

Try using formatString or customString widgets with context. You can print out any html that way. 
Adding custom attributes to Mendix generated html objects might be possible only with javascript after render of objects.

answered
0

Hi,

There is marketplace widget/snippet available, using that you can add a piece of HTML or JavaScript to a form.

Here is the link:

https://marketplace.mendix.com/link/component/56

 

You can add this widget on page, like below

 

Hope this helps you!

answered