if i go to create or update page and immediately click the back button is back to the previous page. But when i go to create or update page and i write something in the textfield and not save it but i click the cancel button it didn’t back to the previous page but stuck in create or update page.
the problem show when i want to create a data, if the textfield need required and i not fill it with text it show error. then i click the cancel button and it not back to the previous page because it get the current url. i want it back to the page before i create. how to do this?
JavaScript (obviously) has to be supported and enabled on the user’s device for this to work. It think it should be possible to combine Jacmoe’s solution in #3 with the JavaScript one, so you at least have a fallback option if JavaScript is not available.