Forums

Impossible to disable validation AND go back one partition when a radio button is the first item in the partition to go back from

indieben 02 Feb, 2019
Hi, thoroughly tested this to ensure that I have made no mistakes. I have one form where it just about works (see other bug report about having to click "previous" button twice when the previous button is set to also disable validation of a field that is otherwise required) - the form that works uses checkboxes and text fields as the first items across partitions.

My second form has a radio button that is required as partition tab 2. This is set to required. I have used the backward class on the button and set an event to disable validaton of the radio button. When the previous button is clicked it disabled the validation but it will not go back one tab.

Thanks.
healyhatman 07 Feb, 2019
Any errors in javascript console? Do you have to click twice to make it go back, or does it simply not go back at all? Got a link where it can be looked at?
indieben 07 Feb, 2019
Hi, thanks for this message too.

If you go to https://www.samspencerit.co.uk and please select "Website Design for Business", go to tab 3 and hit previous, it has to be hit twice to make it go back. As for the one that it won't go back at all on....the "IT Training for Individuals" tab 2 to tab 1 previous button demonstrates this.

Thanks again.
healyhatman 07 Feb, 2019
Don't know about either of those sorry. I would though recommend that you don't even need these partition tabs, I would just use Fieldset areas instead.

Also just from inspecting the checkbox group, you appear to have some fairly complicated field events happening
indieben 07 Feb, 2019
Ah from the conditional logic side it's simply a case of "if a is selected then display b, if a is deselected, hide b" over and over for the form fields. There is some extra code on the buttons to tell them to disable validation to allow the form to go back although I think that the backward and forward classes should override validation by default anyway.
healyhatman 07 Feb, 2019
You should only need two.

If a is selected, display
b
c
d
e
f

The field identifier takes a multi line list.
This topic is locked and no more replies can be posted.