Jump to content


Photo

Autofill how to turn off


  • Please log in to reply
6 replies to this topic

#1 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 195 posts
  • LocationFlorida, USA

Posted 05 December 2017 - 08:00 PM

Is there a way to turn off autofill (or maybe called autocomplete) in the application?

 

When filling in the  form the browser  prompts to autofil the Edit fields on the screen.  The information presented to autofill would never be the correct information, so I would like to turn it off in my program.

 

 

It looks like it can be added to the form property, but I don't know how.

 

<form method="post" action="/form" autocomplete="off">


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 06 December 2017 - 06:25 AM

Hi,

 

Can you clarify your issue once again, or by making a testcase ?!

 

Best regards,


  • 0

#3 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 195 posts
  • LocationFlorida, USA

Posted 07 December 2017 - 03:06 PM

In Chrome (and probably the other browsers as well) 

go to Settings->Advanced->Passwords and forms

 

There you will see Autofill settings.

 

In there you will see addresses:

with a bunch of addresses (and credit cards), you have filled out on other web pages

 

If you are on a web page that has what chrome thinks is an address it will prompt to put in one the saved addresses.

 

In my case these addresses will never be correct, so I would like to NOT have Chrome prompt with the option to fill in the address fields.

 

From what I found out on the internet if you have a form on a web page and add autocomplete="off" it will not prompt for autocomplete.

 

eg. 

<form method="post" action="/form" autocomplete="off">

 

But I don't know how to add a parameter to the <form>.  I am assuming that somehow we are generating a HTML form.


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 07 December 2017 - 03:44 PM

Hi,

 

Please make a simple testcase for this


  • 0

#5 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 195 posts
  • LocationFlorida, USA

Posted 08 December 2017 - 02:30 AM

I don't know if it will autofill for you.  From reading about autofill it looks like it trys to match things saved by your browser that match the form.

 

So I named the fields Address, City, State, and Zipcode.

 

For me, it suggests items to autofill

Attached Files

  • Attached File  AutoFill.zip   1.28MB   1 downloads
  • Attached File  1.png   15.67KB   4 downloads
  • Attached File  2.png   16.08KB   2 downloads

  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#6 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 08 December 2017 - 05:25 AM

Ok, thanks for the testcase.

We will check this
  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 08 December 2017 - 08:22 AM

Hi.

 

One possible solution:

 

MainmForm -> ClientEvents -> UniEvents -> Ext.form.Panel [form] -> function form.afterCreate:

function form.afterCreate(sender)
{
    sender.element.dom.setAttribute('autocomplete', 'off');
}

Try,

 

Best regards,


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users