PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional logic for repeating sections - there's got to be a better way...

  1. BoragThungg
    Member

    Hi,

    My client has designed a form that requires a couple of drop downs and a couple of text fields per product - all on one line. They want the user to be able to add a new line for each new product up to a maximum of 60 (originally 120). I've wrapped each block inside a conditional section so a new section only shows if they tick a box at the end of the product row. Using list fields for products would be amazing here - but alas it is not possible.

    My problem is that one of the drop downs has over 150 options. Once this gets repeated 60 times with conditional logic then the page has become really slow. I tried exporting it from my local machine to a couple of live servers to see how slow it is but they won't even import the xml file. One stated an Out of Memory error and the other did nothing. I changed php memory and post max size but to no avail. The xml file is over 75000 lines long and weighs in at 3.5MB.

    Can anybody tell me a more efficient way of doing this please?

    Thanks

    Mark

    Posted 6 years ago on Tuesday February 19, 2013 | Permalink
  2. With a large complex form like this, you might have to break it into multiple forms to avoid the performance hit of loading it all into memory at one time.

    Posted 6 years ago on Saturday February 23, 2013 | Permalink
  3. BoragThungg
    Member

    Thanks for replying Chris. Yes, I'd already done that for the rest of it. Ah well, I've reduced it to 30 product lines and I'll just have to see how the client reacts.
    Mark

    Posted 6 years ago on Saturday February 23, 2013 | Permalink