WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
Picking and Choosing What to Fill Out (6 posts)

  1. cartar929
    Member
    Posted 1 year ago #

    I am trying to use this plugin as an online tool for people to sign up for an awards show. The issue is that there are a lot of sections to this awards show and the have redundant fields that cause the form to extremely long.

    So, what I am hoping for is the ability for a person to choose the section that they would like to enter and then they are presented with just those fields to fill out. Verses having to scroll through all of the sections to find the section that they want.

    Does anyone know of a way that this could be possible?

    For example ideally I think it would be great if it were possible to put shortcodes for these sections on their own page. Anyway I know it might not be possible to do it the way I am initially thinking. If anyone knows of a solution that could work I would love to hear it.

    Thanks,
    Carter

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    cartar929,

    This could be done using different templates for each form. Might be a little tricky, but certainly possible. I'd suggest using groups to organize your fields, the have each template determine which groups display.

  3. cartar929
    Member
    Posted 1 year ago #

    xnau,
    Thanks for getting in touch so soon.

    I am not sure if I quite follow you when you say, "have each template determine which groups display." How are you using the template to determine which groups display? If you could give me some more information on that it would be great.

    Thanks,
    Carter

  4. cartar929
    Member
    Posted 1 year ago #

    Here is a preview of a register link that I am starting to work with.
    http://richmondadclub.com/register-test?pid=JGV98

    For right now I just have two of the awards show categories listed.

  5. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    Carter,

    Well, to some degree, you've got to have some PHP skills to pull this off, but here's the basic idea.

    Make a copy of the pdb-signup-default.php file and put it in your theme directory in a directory called "templates" Now, when the signup shortcode is called, this template will be used. If you edit the template in the plugin itself, you'll lose it when you update.

    There's a line in the template that looks like this:
    <?php while ( $this->have_groups() ) : $this->the_group(); ?>
    OK, right after that, you just check for the name of the group. if it's one you don't want to show , it skips to the next one:

    <?php while ( $this->have_groups() ) : $this->the_group();
     if ( $this->group->name != 'a-group-I-dont-want-to-show' ) :
    ?>

    Now, it's going to print the group if it's not one you want to skip. After that, put this...between the "endwhile" statements:

    <?php endwhile; // fields
           endif;
          endwhile; // groups ?>

    That closes the "If" statement, and then the next group will get shown.

    That is just to give you the idea...

    Now, once you have it working for one of your forms, copy the template, give it a new name, modify it for your nest form and use it by calling the template in your shortcode. This is explained on on this page under "Templates" http://wordpress.org/extend/plugins/participants-database/other_notes/

  6. cartar929
    Member
    Posted 1 year ago #

    xnau,
    I appreciate the info I'll give this a shot and see what I can come up with.
    Thanks,
    Carter

Topic Closed

This topic has been closed to new replies.