Attribute to an <input> element.

ituxxl

New Member
The Fabrikar element is a field ... so i need to add my own attribute to an input element.
In this case i need to put
data-uk-datepicker="{format:'DD.MM.YYYY'}" into the renderd <input> tag from the fabrikar field.
I know it exist an datefield in fabrikar, i don't want to use it.

I searched hours but couldnt find a solution. I tried to rewrite

/plugins/fabrik_element/field/field.php

and

/plugins/fabrik_element/field/forms/field.xml

but also i hang up in code.
 
Solved otherwise! I take now chronoform5 to edit the table-record.
I use in the list the php-plugin to create a button, wich open a chronoform in db-read mode.
So everything is perfect an powerfull now.
 
Hugh - that would be a site-wide change affecting all instances.

What would be nice would be an easy way to add an attribute to the input field rendered by a single instance of a plug-in, similar to the way you might add a module class suffix to just one instance of a module. This could be used to add the HTML5 autofocus attribute to a first element of a form as well as to set data- attributes that enhance accessibility. So far, I'm not seeing an easy way to generically append attribute content inside the <input> tag.
 
Yeah, we're looking at adding per-form and per-template layout overrides, but we're not quite there yet.

I'll look at adding attributes on a per-element basis.

-- hugh
 
Nope, not yet.

At this point in Fabrik's life cycle, we're really only adding new features if a) 90% of users need them, or b) someone pays us to add it.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top