Forum

Thread tagged as: Question, Forms

form input custom attribute

I'am trying to add a custom attribute to an input for vue.js use. As far as i know this is not possible ?

Input :

<perch:input type="text" id="nom" required="true" label="Nom" placeholder="nom et prénom"  v-model="message"/>

Output :

<input id="form1_nom" name="nom" placeholder="nom et prénom" type="text" required="required">
DEVAUX Nicolas

DEVAUX Nicolas 0 points

  • 4 years ago

You can add class and data attrabutes. They will pass through to form.

Thanks, i am aware of that, but that's not what i need.. I need to pass specific vue.js attributes...

I am afraid vue.js doesn't seem to be configurable to use a data- attrabute which would be the only way (I) see to make this workable with perch forms.

Sorry... :(

Don't be sorry, i'll try another way to accomplish this. Thanks for your answers.