ipad - turn autocorrect, autocapitalize and autocomplete off

Hi,

How do i turn autocorrect, autocapitalize and autocomplete off on a ipad.

The following code worked in the previous release (1) but does not work any more.

$$(“find_object”).attachEvent(“onAfterRender”, function(){
$$(“find_object”).getInput(“find_object”).setAttribute(‘autocorrect’,‘off’);
$$(“find_object”).getInput(“find_object”).setAttribute(‘autocapitalize’,‘off’);
$$(“find_object”).getInput(“find_object”).setAttribute(‘autocomplete’,‘off’);
});

I have my development website at:

bbqweer.eu/checklist/test.html

Regards,

William

Hi,

$$(“find_object”).attachEvent(“onAfterRender”,function(){…}) is called after the view is rendered. Therefore, the event handler is not set. Try to put event handler directly in “input” view config:

{ view: "input", type: "text", id: "find_object", on: { onAfterRender:function(){ this.getInput().setAttribute("autocorrect","off"); this.getInput().setAttribute('autocapitalize','off'); this.getInput().setAttribute('autocomplete','off'); } }, ... },