• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Duplicate Conditional Fields Groups

Duplicate Conditional Fields Groups 9 years 4 months ago #33357

Hello,

I created a form that displays conditional fields based on the user's input...

If the user chooses to register two adults, then two rows of fields are displayed:
Adult 1 Name (textbox) | Adult 1 T-Shirt Size (radio)
Adult 2 Name (textbox) | Adult 2 T-Shirt Size (radio)

If the user chooses to register three adults, then three rows of fields are displayed: (and so forth)
Adult 1 Name (textbox) | Adult 1 T-Shirt Size (radio)
Adult 2 Name (textbox) | Adult 2 T-Shirt Size (radio)
Adult 3 Name (textbox) | Adult 3 T-Shirt Size (radio)

The issue is that when the user enters a name in the "Adult 1 Name" textbox field, the name is not submitted. However, the "Adult 1 T-Shirt Size" radio button that is in the same row is submitted.

Each form row is wrapped in a DIV. In order to get the rows to show correctly, the rsform-block had to be duplicated for each row:

Adult 1
rsform-block 1

Adult 2
rsform-block 1
rsform-block 2

Adult 3
rsform-block 1
rsform-block 2
rsform-block 3

I tried another method with a different form and edited the HTML so that each row is nested inside the other, as seen below. But this method did not work because if the rsform-block row is not conditionally selected it is automatically set to "display: hidden".

Adult 2
rsform-block 2
rsform-block 1

What is the best way to resolve my issue?
Both forms can be seen here: reunion.jxngraphix.com/registration
Last Edit: 8 years 3 weeks ago by JxnGraphix.
The administrator has disabled public write access.

Duplicate Conditional Fields Groups 8 years 11 months ago #35137

  • spinfx
  • spinfx's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi
Did you every get a reply to your question or find a solution?
I have a similar problem where I need to show x number of sets of questions, depending on the number of participants (up to 6).

This is what I need to achieve:

I have used the basic conditional fields system with great success, but this requirement is proving quite difficult.

I'm creating a form for a travel agency.

Each passenger (family member) needs to answer approx 15 questions so I have those on one page for each group of questions. There will be a max of 6 passenger question groups.

If the main traveler in the group answers the question 'How Many in your party?' with a number >1, I need the correct number of subsequent pages to show.

For example, if party size is 3, I need three groups (pages) of 15 questions to show. These should be labeled 'Passenger 1', 'Passenger 2' and 'Passenger 3'. The max number of passengers in any party will be 6 so it follows that the form should show the following:

Basic Contact Information (Always)
Passenger 1 information page (Always)
Passengers 2-6 information pages (on condition number of passengers is between 2-6)
Final common group information (Always)

I hope someone can help me with this.

Warm Regards, David
The administrator has disabled public write access.

Duplicate Conditional Fields Groups 8 years 8 months ago #35564

Any News on this yet?
Have same problem
The administrator has disabled public write access.

Duplicate Conditional Fields Groups 8 years 8 months ago #35570

  • spinfx
  • spinfx's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi

No I never did get a satisfactory answer either via the forum or by putting in a ticket.

I tried everything that was suggested, but none worked. The responses tended to be "Do this", but not "Do this here" so it was never clear if the code should go in the Java Script Panel or somewhere else on the form page.

This is what was sent to me (below) maybe you can figure it out ??
 
<script type="text/javascript">
function rsfp_conditionalPage(formId, page, totalPages, validate){
    var dropSelection = parseInt(document.getElementById('passengers').value);
 
    if(page == dropSelection+1 && typeof validate != 'undefined'){
        rsfp_changePage(formId, 6, totalPages, validate);
        return '';
    }
    rsfp_changePage(formId, page, totalPages, validate);
}
</script>
 

Best Regards, David
The administrator has disabled public write access.

Duplicate Conditional Fields Groups 8 years 3 weeks ago #36714

  • ipipunic
  • ipipunic's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Any solution for this yet?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!