How can I fill the 'name' property (of the editfield on the webpage) of an TUniEdit field so the autofill knows what content to put in it.
When using the FieldLabel property of the TUniEdit the 'name' property is filled with that value. But as I cannot use the FieldLabel property for this puprose I would like to fill the 'name' property myself. But I cannot seem to find a way.
When I use the 'Telephone' as a value for the FieldLabel, the name of the edit control on the form will be 'Telep
// for mobile TunimEdit - painted
function painted(sender, eOpts)
{
var me = sender.inputElement;
//console.log(sender);
me.dom.setAttribute('autocomplete', 'tel');
me.dom.setAttribute('name', 'tel-local');
}
// for desktop TuniEdit - afterrender
function afterrender(sender, eOpts)
{
var me = sender.inputEl;
me.el.dom.setAttribute('autocomplete', 'tel');
me.el.dom.setAttribute('name', 'tel-local');
}
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocompl