Jump to content

FromBuilder - problem with requirements on form submit loosing textfields data


GEN-
 Share

Recommended Posts

Hello, I have a problem with a specific arrangement of conditions in a form. The structure is as follows:

-Service #1 (Checkbox)
--Specialty #1.1 (Checkboxes list)
--Specialty #1.2
--Specialty #1.Other
---Specialty #1.Other (Text field)
-Service #2 (Checkbox)
--Specialty #2.1 (Checkboxes list)
--Specialty #2.2
--Specialty #2.Other
---Specialty #2.Other (Text field)
...

The idea is that at least one service and one specialty from the list is selected. If the specialty Other is selected in a section, the text field of the section is required. Visually, on the page, everything works as expected. However, when submitting the form, I lose the values of the text fields in most of the sections. And the funny part is this: If I change the structure by moving the text field up to the top of the relevant service, the form submission is ok, but not a viable solution: 

-Specialty #1.Other (Text field)
-Service #1 (Checkbox)
--Specialty #1.1 (Checkboxes list)
--Specialty #1.2
--Specialty #1.Other
---Specialty #1.Other (Text field)
-Specialty #2.Other (Text field)
-Service #2 (Checkbox)
--Specialty #2.1 (Checkboxes list)
--Specialty #2.2
--Specialty #2.Other
---Specialty #2.Other (Text field)
...

It seems that by removing the requirement conditions on all services, the associated text fields also work without having to move them, but again, this is not an option according to the requirements of my client. So, if someone could explain to me why my requirements on services override the section text field except by moving them to the top of the desired section, I would greatly appreciate it. 

In attachment, an export of the form in question. The first service and speciality text are working but not the other sections.

Thanks,

exemple.json

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...