XF 2.0 type=password on admin cp option fields...

Jaxel

Well-known member
I'm having a problem with form fields in the admin CP options section.

I'm trying to make a field, with hidden values. In XenForo 1, I was using type=password as a format parameter. This worked quite well.

However, in XenForo 2, using the same format parameter interferes with chrome's built in auto-complete password system. In other words, chrome keeps changing the text in the field.

How do I fix this?

I have tried setting autocomplete=off as a format parameter; but that doesn't do anything.
 
Yeah, that would require me to make a template for a simple text field.
I was hoping there was some way to do it through the basic XenForo options system.
 
This is an OPTION parameter... for an OPTION. If you want to put custom parameters into it, you have to make a template.
 
It's worth noting we don't do anything special in XF1 to prevent anything autofilling here, so neither should we need to in XF2. If there are any differences, it may simply be in the configuration of your browser autofill settings for the domain/URL you're using.
 
Can you guys add a parameter for autocomplete=off?

I mean you guys already have a parameter for type=password. This would be a convenient addition.
 
Back
Top Bottom