Forums

autocomplete "off" atribute

bambid 07 Feb, 2014
Hello I got a little Problem

I have a form which contains a field that I would like so additional formatting
original:
<input id="ersch" maxlength="2" size="5" class="ersch validate['required','number']" title="" type="text" name="erscheinungen" />

New:
<input id = "ersch" maxlength = "2" size = "5" class = "ersch validate ['required', 'number']" title = "" type = "text" autocomplete = "off" name = "erscheinungen"/>

Where can I include this part, that there is nothing available for selection.
Or where I can pass inside the form tag? <form action="xxx" autocomplete="off">

This field is used for the calculation, and if it is selected by the mouse as a bit, then does not affect the "keyup" function.

Thanks for your help

bambid
GreyHead 08 Mar, 2014
Hi bambid,

You can add an attribute to the <form> tag in the form General tab (Click the form name link in the forms manager to see it). or you can add an attribute to an input by using JavaScript in a Load JS action in your form:
window.addEvent('domready', function() {
  $('ersch').setProperty('autocomplete', 'off');
});

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger