Add custom data attribute to Content Fragment Model field/data-type

Avatar

Avatar

FL33TW00D

Avatar

FL33TW00D

FL33TW00D

05-11-2020

Hi there,

I am looking for a way to add a custom data attribute that is rendered in the DOM.

 

I have created a custom data type for Email Addresses by overlaying /libs/settings/dam/cfm/models/formbuilderconfig.

 

I have wrote some custom JavaScript that performs validation to ensure they're entered correctly.

 

However, I want to add a custom data-attribute inside the HTML for every instance of my custom data type, so that my validator can use that data-attribute as a selector.

 

Any ideas?

 

Many Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

sunjot16

Employee

Avatar

sunjot16

Employee

sunjot16
Employee

05-11-2020

Answers (0)