I have a issue where new or edit form caching old values if closed without saving but i don't want the values to be saved if it is closed since i have button disabled on those values and now button is not available is there a way to reset the form to original values if it is not saved when form loads. Thank you.
What do you mean caching? Are the fields auto-filled by the browser?
Could you please share the screenshot.
This is exactly what happens! If you click the x in the top right on a edit or new form, the next time you go there it will have the information prefilled by the browser instead of empty fields.
yes exactly but we dont want it to be auto filled need to reset form and also if we try to save and get any error it still remembers the old values but i want fresh new form everytime it is saved
You need to disable AutoComplete option in your browser.
In Internet Explorer go to Settings >> Internet Options >> Content tab and uncheck all options.
In Google Chrome go to Settings >> Autofill and disable save and fill option for paswords, payment methods and addresses.