I have a form that sends data to another page, I would like to reset some inputs after submitting the form, so I tried this:
%pre%
But I did not succeed, I tried to reset the input several ways, putting in a function js (which would be right in the case), tried jquery among others but I did not succeed, so I believe there may be some conflict within my form that might be causing this function problem not to generate the expected result (which in case is reset the text area description).
______ azszpr316756 ___
%code% is in the wrong place. You should put it in the %code% tag. Another problem is that %code% is only applicable to the %code% object, not to an individual form element.
As you can not clear the field in the submit (otherwise it will be sent empty), call a function after a small delay using %code% on %code% :
%pre%
And put the %code% function in JavaScript by clearing the field with %code% :
%pre%
Or you could also do everything in %code% without calling function:
%pre%
___