Re: [Xsltforms-support] How go back to an xform and keep the data
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2013-04-02 17:45:20
|
Hello Elias, > Scenario: user opens the xforms and enters some data. after that it > submits that data and the xquery detects an error condition before > writing to the database and gives the user a back button (or the user > clicks on the back button of the browser). > > - When that happens all the entered data is lost and the original > data is displayed. I think this happens because xforms > recalculate/revalidates everything. > > Is there a way to disable that so the user does not loose the entered > data? > > If you need to validate some data at server-side, you should better use the AJAX approach: the form is not fully replaced since the validation is not OK. After that, the form can ask for the next one, maybe with the same values or from the returned status from the previous AJAX call. The browser navigation is not safe when mixed with AJAX... -Alain |