Autocomplete inputs - (and what we will do about it)

Login or register to post comments
2 replies [Last post]
marcosdsanchez's picture
Offline
Joined: 03/31/2008

Autocomplete

Autocomplete of inputs right now is not standard and not cross-browser compatible. Anyway, we wanted to use it with Qcubed. But we couldn't.

Here it's why:

If you are using firefox3. You'll notice that if write your forms like

<form name="test" method="post" autocomplete="off">

Inputs will still autocomplete if you double click on the input

Well... let's try with

<form name="test" method="post" autocomplete="off">
and the inputs with the autocomplete="off" attribute....

Still doesn't work.

Autocomplete doesn't work in FF.

What should we do?

We're going to create a SetCustomAttribute for QForm.

If users wish to use autocomplete=off, they should use SetCustomAttribute() on the form.

For SetCustomAttribute on the form, a ticket (7) exists already.

Maybe this gets fixed in the future...

alex94040's picture
Offline
Joined: 11/06/2008

Marcos, thanks again for investigating this. Indeed, we seem to be screwed by the browser incompatibility here - Firefox simply doesn't support this property.

I think as a reference for our users, we should suggest using

SetCustomAttribute("autocomplete", "off")

on both the control and (when we add this feature to 1.1 - with bug #7) on the QForm.

Offline
Joined: 01/09/2008

SetCustomAttribute() is now part of QFormBase.

note that this is 1.1.0 functionality, don't check it in on the 1.0.0 trunk :)

Kristof