Page 1 of 1

Not clearing InputText anymore??

Posted: Fri Aug 02, 2013 11:13 pm
by John Herdean

Hi, I want to clear an input text after a certain event and wrote this JS:

Appery('mobiletextinput_name').val('').textinput('refresh');

STrange because a couple hours ago before the testing went down it worked just fine. Now, only one out of a bunch work. Is that a bad JS? Is there a better one? Or is there some issue relating to saving my code on Appery's site thats causing only one out of many to work?


Not clearing InputText anymore??

Posted: Fri Aug 02, 2013 11:25 pm
by Alena Prykhodko

John,

Your code is right, try to delete Event and add it again.


Not clearing InputText anymore??

Posted: Mon Aug 05, 2013 6:22 am
by Kateryna Grynko

Dear John,

Just to add.

textinput doesn't have refresh method so using val("") is enough.

Check control name in code and recreate handler, as Alena advised.