Atozed Forums
Autocomplete - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Autocomplete (/thread-2429.html)



Autocomplete - PaulWeem - 06-09-2021

Hi,

Would it be possible to add an autocomplete attribute to the IWForm and/or IWEdit.

According to https://www.w3schools.com/howto/howto_html_autocomplete_off.asp this should be possible in HTML

Thanks, Paul


RE: Autocomplete - Jose Nilton Pace - 06-09-2021

Hi, try OnHTMLTag in your IWEdit:
Code:
procedure TIWForm1.IWEdit1HTMLTag(ASender: TObject; ATag: TIWHTMLTag);
begin
  ATag.AddStringParam('autocomplete', 'off');
end;
Uses IWHTMLTag.


RE: Autocomplete - kudzu - 06-09-2021

I think we have JQUI control that does this now?


RE: Autocomplete - PaulWeem - 06-10-2021

(06-09-2021, 05:54 PM)Jose Nilton Pace Wrote: Hi, try OnHTMLTag in your IWEdit:
Code:
procedure TIWForm1.IWEdit1HTMLTag(ASender: TObject; ATag: TIWHTMLTag);
begin
  ATag.AddStringParam('autocomplete', 'off');
end;
Uses IWHTMLTag.

I did something similar by adding autocomplete="off" to the "ExtraTagParams" of the IWEdit.
But when you programmatically fill or clear the IWEdit, this Tag is deleted and Autocomplete is back.

But:

(06-09-2021, 09:55 PM)kudzu Wrote: I think we have JQUI control that does this now?

Thanks to Kudzu, I found "Attributes", where (amongst others) you can set "iaAutocomplete", which does exactly what I was looking for.

So, question answered and problem solved.

Thank you!

Paul


RE: Autocomplete - Alexandre Machado - 06-11-2021

Yes, IWEdit and descendants already have the Attributes property. set isAutocomplete to True or False to enable/disable it