Forums

Field attribute type not parsed

jmeidal 28 Apr, 2017
I have set a field with the Extra Attribute of:
type="tel"

yet the frontend is parsed as:
<input type="tel" ="type=""tel""" ...


Do I need to change my attribute syntax, or this this a bug?
GreyHead 28 Apr, 2017
Hi jmeidal,

Please try type:tel (with a colon and no quotes) - that appears to work when I test; though not all browsers support 'tel'.

Bob
jmeidal 28 Apr, 2017
Thanks, yes! That clears it up for me. I'm in Chrome currently.

Since I'm on this topic, is there a new syntax for something like this to add in my attribute for custom masking?

data-inputmask='mask' : '999-999-9999'
Max_admin 28 Apr, 2017
Hi,

Same:
data-inputmask:'mask' : '999-999-9999'


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jmeidal 28 Apr, 2017
Cool!
Super easy and nice to have this working. My previous type="tel" must have been what messed up the <input> field previously. Thanks.
This topic is locked and no more replies can be posted.