Turn off autocomplete for a form (autofill)
Autor: Einar W.
Visitado 1587,
Followers 1,
Compartido 0
I have a website with a form and I do not want the browser to automatically fill inn what the user filled in last time he/her visited the page.
In HTML you can use "autocomplete="off" but how do I achieve the same effect in a form in Website X5 Pro?
Publicado en
Hello Einar,
+1
Should be an option into the form parameters into WSX5 !
But to have a new feature into WSX5 asked by users is really complex if not impossible.
Good luck !
Enjoy
Axel
Hello. I sent a notification about your question to the company employees, expect an answer from them here in the comments.
Autor
Thank's both :-)
Hello:
Before I used these 3 meta tags.
<meta http-equiv="expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
This tells browsers NOT to cache anything, forcing them to download everything again when the site is visited again.
The inconvenience it presents is that it takes longer to view if the client visits the page several times a day, since it downloads EVERYTHING again, images, texts, etc. everything.
It would be a matter of including them and seeing if it works for you with the forms.
STEP 1 - Statistics and Code - Code - Before the closing of the /head tag.
Unfortunately I haven't used them for a couple of years. I don't know if they work yet.
Greetings
... x Einar W., ...maybe (!) you could adapt an exclusive invention (Mt:7.6) of mine, which you can find here:
>> https://helpcenter.websitex5.com/es/post/249261
.
ciao
.
Autor
KolAsim, could you please present the answer in english?
Your link points to a long italian thead.
I suppose the solution is interesting for Incomedias customers outside of Italy too ;-)
Forse non ho capito...
ma la funzione "disabilita autocompilazione dei moduli", dipende dal browser.
Quindi è l'utente che deve impostarlo nel suo browser, non tu nel sito...
======
Maybe I didn't understand...
but the function "disables autofill of the forms", it depends on the browser.
So it is the user who has to set it in his browser, not you in the website...
you can found more info on Google...
here ad example:
https://support.iclasspro.com/hc/en-us/articles/218569268-How-Do-I-Disable-or-Clear-AutoFill-AutoComplete-Information-
(It > En) ... x Einar W., . .. sorry, I use Google Translate......
... eventually, if the Topic is not clear, and if you are interested, put here the LINK of the page with your Form_mail, so that I can evaluate...
.
ciao
.
Autor
Claudio D.
You are misunderstanding the question. I Want to turn off autocomplete SERVERSIDE.
That is absolutely possible!
There are three ways to go about this:
1. Include thiis in the form: "autocomplete="off" (But browsers my ignore this setting)
2. Use the "new password" trick. (See link under)
3. Randomize the name of the input field. (This is the far best approach)
It would be best if Website X5 did include a variety of all these three approaches, at least the last one.
Look here:
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
si è possibile ma solo in parte ...
alcuni consigliano di usare uno script che lo forza , ma non funziona con tutti i browser, così come non funziona autocomplete OFF...
come c'è scritto anche nel link che hai segnalato, quindi potrebbe funzionare solo se settato nel browser stesso.
Ma quale sarebbe la necessità ? Hai un pc in un chiosco o cosa ?
ciao
==========
questo lo script che alcuni consigliano di aggiungere (da mettere prima della chiusura del tag body) (io non l'ho provato)
<script> $(document).ready(function() { $('input').attr('autocomplete', 'off'); }); </script>
==========
trovi delle info qui:
https://www.w3docs.com/snippets/html/how-to-disable-browser-autocomplete-and-autofill-on-html-form-and-input-fields.html
Or
https://www.geeksforgeeks.org/how-to-enable-an-autocomplete-in-jquery-ui/#:~:text=To%20enable%20an%20autocomplete%20in%20jQuery%20UI%2C%20we%20will%20be,completely%20to%20its%20initial%20state
Autor
Claudio D.
<script> $(document).ready(function() { $('input').attr('autocomplete', 'off'); }); </script>
...did work.
Thanks :-)
Bene Einar...
allora chiudi il post...
Ciao