Page 1 of 2
Clear previously entered text on input fields.
Posted: Fri Oct 26, 2012 9:43 am
by Kevin
I have a screen with a form. When a user fills the form and goes to another screen then later come back to that screen they find the values they had entered previously.
So they have to start deleting each field and fill in new values.
How can I make the form input fields empty whenever the user comes back to the form?
Clear previously entered text on input fields.
Posted: Sat Oct 27, 2012 5:23 am
by Kevin
Clear previously entered text on input fields.
Posted: Sat Oct 27, 2012 12:59 pm
by Eric5020946
create local storage variable to track last visited page and update this variable when user goes to new page
on your page with form check if last_visited_page variable equals current page, if not reset all values in the form
Clear previously entered text on input fields.
Posted: Sat Mar 14, 2015 6:37 pm
by PinetartInc
I'm still not clear on this, I am using the attached code. How do I change or implement this code correctly to clear the input fields, and reset the element values back to their default?
Clear input field "inputTest" with JS:
Apperyio("inputTest").val();
Delete elements that were created by service:
Apperyio("elementName").remove();
Clear previously entered text on input fields.
Posted: Sat Mar 14, 2015 7:29 pm
by Alena Prykhodko
Clear previously entered text on input fields.
Posted: Sat Mar 14, 2015 8:18 pm
by PinetartInc
Hi, I tried it and it still didn't work.. This is what I put: Appery("Incident").find("input[type=text]").val("");
-- My screen name is 'Incident', and that is all that I changed. Any other ideas?
Clear previously entered text on input fields.
Posted: Sat Mar 14, 2015 8:24 pm
by PinetartInc
I placed it on the Page component on page load. Is that the right place to put it?
Clear previously entered text on input fields.
Posted: Sat Mar 14, 2015 9:18 pm
by PinetartInc
Hi, I tried it and it still didn't work.. This is what I put: Appery("Incident").find("input[type=text]").val("");
-- My screen name is 'Incident', and that is all that I changed. Any other ideas?
I placed it on the Page component on page load. Is that the right place to put it?
Clear previously entered text on input fields.
Posted: Sun Mar 15, 2015 6:14 pm
by PinetartInc
Hey, does anyone have any ideas??
I tried it and it still didn't work.. This is what I put: Appery("Incident").find("input[type=text]").val("");
-- My screen name is 'Incident', and that is all that I changed. Any other ideas?
I placed it on the Page component on page load. Is that the right place to put it?
Clear previously entered text on input fields.
Posted: Sun Mar 15, 2015 6:15 pm
by PinetartInc