Home Forums Add-ons Repeater Field Nested Repeater Fields with a Conditional


Nested Repeater Fields with a Conditional

  • I am trying to build a simple page builder> I understand that there are many pre-built solutions out there but I need to make this simple for my client. I create a Repeating field that starts with a dropdown menu to select which type of assets need built. From there I have three unique fields that appear.

    1. WYSIWYG
    2. Repeater to build buttons
    2.a page_link
    2.b text
    3.Repeater to build simple links
    3.a relationship

    I am trying to allow the client to first select which of the three options they would like and then if they need to build something else on the page they can use the initial repeater to allow the user to start all over again.

    The issue I am seeing is how to correctly order the output based on the order inwhich the data is being saved. I have done a VAR_DUMP and the data is in the correct order, I am just unsure as to the next steps to correctly extract the data and display it on the page.

    I would really no thave to use a prebuilt page build and instead go with this route is possible. – screenshot

  • I am a dumbass.

    Here is what I did

    use the conditional as the determining factor as to what should be built and then create a bunch of if and ifelse statements to switch based upon the option selected.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.