• IT Hertz

    (@it-hertz)


    Hello, I’m playing around with this plugin again and, without diving into the files to find it myself, can you tell me what happens to tags when the user adds and removes tabs? Does the plugin simply append a number adding and subtracting 1 at the end of the tag name?

    My current form uses a radio for the user to select number of repeated sections to fill out for up to 5 different students. It hides the unused sections and works fine, but I’m exploring using tabs instead, to make long scrolls unnecessary for the user. I have a user profile section for parents and then student sections. Using your collapsing grids cleans up the look, as the user can select whether to show/hide the profile form or the student form.

    I’m using nested loops to iterate through the sections to perform several functions:
    1. create new WP and WooCommerce accounts with metadata from the fields
    2. generate WC order from dropdown selections, eliminating the need to manually select products and add to cart (once their school application is approved by staff, the user is taken straight to checkout on login)
    3. send meta to custom email template for bookkeeper
    Below is a small portion of the loop that gets class choice and payment schedule selections from the student sections:

    for ( $i = 1; $i <= $_POST['Student_Count']; $i++ ) {
    $student_name = $posted_data['Student_'. $i .'_First_Name'] .' '. $posted_data['Student_'. $i .'_Last_Name'];
    $class_pick = $_POST['Student_'. $i .'_Class'];
    $tuition = $_POST['Student_'. $i .'_Tuition'];

    It gets more complicated, as the school wanted only certain class levels to be billed – highest 2 of 6 levels get billed, additional students are free, and the class prices vary. There’s also a signature box for drawing their signature or uploading an existing one. My current form works perfectly, and the school has been happy with it, but like I said, a more streamlined look could be achieved with tabs. I’ve already built the profile and student form section in Smart Grid, but I’ll have to do a lot of work on my form handler if I have to move the student counter elsewhere in the tags.

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    can you tell me what happens to tags when the user adds and removes tabs?

    did you see the tutorials on this? You can better understand what happens when you see it for yourself.

    My current form uses a radio for the user to select number of repeated sections to fill out for up to 5 different students.

    Looks like you have interesting data capture problem on your hands, and one for which I specifically designed the Smart-grid plugin to be extensible and flexible enough to solve such challenges.

    There is a list of advanced video tutorials exposing key features of the plugin that allow you to build more complex custom forms. See this one on dynamic form constructs.

    Hopefully the above should be useful to further streamline your form.

    Happy coding.

    Vrata

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.