WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms + Custom Post Types
Using Taxonomy more than once (4 posts)

  1. dochara
    Member
    Posted 2 years ago #

    First of all, thanks for this plugin, which is fantastic.

    However I've run into an issue. I have a form, linked to a custom post type, that allows some users to select one custom taxonomy term, some to select two and others to select an unlimited number.

    My intention was to create three fields, basically called - Choose first term (drop down), Choose second term (drop down), Choose any amount of terms (checkboxes), and determine which is/are displayed using conditional logic.

    However when I add more than one field populated with the same custom taxonomy, the form fails completely, nothing is shown at all.

    Is there any way around this? Or will I have to rely on just telling people how many they can choose (they are unlikely to be very obedient!)? Or is there another approach altogether that I am not seeing?

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

  2. bradvin
    Member
    Plugin Author

    Posted 2 years ago #

    I have never tried a scenario like this before. I will try it out and let you know what I find

    cheers
    Brad

  3. dochara
    Member
    Posted 2 years ago #

    Thanks, I'd appreciate that very much.

    I've resorted to a 'preform' which determines what form to show the various people, which isn't ideal but works for picking one taxomomy or any number, but I still have an issue allowing people to pick two only.

  4. dochara
    Member
    Posted 2 years ago #

    The solution I have come up with (provisionally) here, is to switch the choices with a gform_pre_render function. However, since your plugin already does this, would it work do you think?

    If not, I suppose I can just use ordinary dropdown/checkboxes fields, switch them, and handle the taxomomy in a post_submission function.

    Unless you see something better?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic