Forums

Is it possible to override validation checks?

EX34Mush 30 Jan, 2017
I have produced a multi-form set of seven pages that allows the user to move backwards and forwards though the work flow using submit buttons. This is to enable them to amend data before submitting the form.

The form works well except I have a problem with Required field.

Moving forwards through the work flow, if a Required field is empty I am prompted and cannot move forward until the field is given content. That is fine.

If a field is not Required I can move forward even if it empty. That is fine.

If a field is not required and is empty I can move backwards. That is fine.

If a Required field had contents, then I can move backwards. That is fine.

If a Required field is empty and I try to move backwards, instead of prompting me I get a browser error message 'Document Expired' from Firefox, 'Confirm Form Resubmission' from Chrome, and 'Hmm, we can’t reach this page.' from IE.

Ideally I would like to override the Required field option when moving backwards, but I would like to understand what is going on.

I believe this might be something to do with GET and POST. The default setting in HTML (Render Form) is 'File'. I have tried selecting POST and GET options. POST behaves as the default, GET does not work at all.

I would appreciate some ideas and if this is fixable.
Max_admin 30 Jan, 2017
Hi EX34Mush,

How do you move backwards ? you should use a "link" tag:
<a href="form_link&event=YOUR_EVENT_NAME" class="btn">Back</a>


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
EX34Mush 30 Jan, 2017
For each page I have two events. One to display the page, and one that contains Event Switcher with some suitable PHP code to select the event that either moves me forward, or back a page.
If I were to insert your suggested code, where in the ChronoForms structure would I put it?
EX34Mush 31 Jan, 2017
Any more thoughts on this one Max or Bob? I am stuck and need to get this working asap.
Max_admin 17 Feb, 2017
Hi EX34Mush,

Apologizes, did not notice this for a while.

The code is for a back link in a multi page form, it should be inside a "custom" element in the designer where you want th button to appear.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.