• Resolved vesnama

    (@vesnama)


    Hello,

    I cannot find an answer here in forum nor in the official page tutorials…

    I’m creating extended fields for user profile page for collecting additional informations.
    When I create Relationship field with multiple choice drop down list with custom items how do I make it possible that a user can also add new item if his answer isn’t in the list?

    For example:

    Your favorite fruit?
    – apple
    – orange
    – grape
    – add other?

    And this newly added other to be saved as option for future in this drop down?

    I hope it can be done?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    This can only be done with custom post type relationships.
    All other relationship types cannot be added dynamically.

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    I did use custom list in relationship field. But I don’t see how to define the option for user to add new items?

    Or am I misunderstanding you?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    Yes you are misunderstanding, no problem! ??

    What I meant is that you can not use the custom list for relationships that need to be added dynamically.

    If you want to use relationships for filtering etc. you need to use taxonomies, that is what taxonomies are meant for.
    You can create a custom taxonomy and then relate the post types to those taxonomies.
    https://docs.pods.io/learn/what-are-custom-taxonomies/

    Alternatively, if these are not for filtering but just for storing data/lists, you can create an extra custom post type; “Fruit” for example and change your relationship field to relate to this post types.
    Post types can be created dynamically through the field.

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    I still don’t understand. I mean I did successfully create custom list for Relationship field using Custom list option (instead of taxonomy). Hm?

    I found it in the many options for Relationship field:

    https://drive.google.com/file/d/1kfiB7scyfoJgzisGbwIQVoZbTP7NvWqf/view?usp=drivesdk

    https://drive.google.com/file/d/17Em3hKMz_g1EBdpb3uwqmwahxQvo51ey/view?usp=drivesdk

    Now how to add
    Other item (enter your own)

    ?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    You cannot use the option “Simple (custom defined list)” if you want your users to fill in options themselves. This option can only be used for a predefined list.

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    Oh, so if I make this list as a new taxonomy then there will be an option to add new?
    OK, now I got it. Yes, it makes sense and it might be more useful later for searching these data.
    Tnx! ????

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    Correct. Taxonomies are then added through WordPress core, not Pods custom fields ??

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    But then again, the form for the additional user info still doesn’t offer “add new item”,mommy fixed list of existing taxonomy items, so I as admin have to go through Taxonomy admin page to add an additional item specific user wishes to enter ??

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    I’m sorry, I totally missed the part where it’s about a user profile form.
    With this I assume it’s on the frontend?

    If so, this will be very difficult in all cases since you would then let your users create objects within your installation.
    You might be able to do this through the Gravity Forms addon but I’m not sure to be honest.
    Keep in mind that such user input needs to be verified very carefully for security reasons.

    Honestly, I think this is a bit out of scope for the Pods project. You are probably better of searching for membership plugins that suit your needs.

    I’m sorry I lead you the wrong way, I didn’t fully understand what you were trying to do exactly.

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Also see my colleagues comment here: https://www.ads-software.com/support/topic/front-end-form-will-not-display-properly-with-a-large-number-of-fields/#post-15412137

    He recommends WP User Frontend: https://www.ads-software.com/plugins/wp-user-frontend/
    This plugin might be something to take a look at!

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    I only need it for admin area user edit page.
    I tried other plugins you suggest but no need for them. I would love to keep the number of plugins at minimum because I already have many.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    Then I’m not sure what the best solution would be here.

    Our next major release, Pods 2.9, will support repeatable fields which would solve your issue here.
    You can then create a text field where users can input their own content and dynamically add more if they wish.

    There might be other plugins that support a similar feature for free but at the moment it’s not a feature of Pods, though it will be soon!

    Cheers, Jory

    Thread Starter vesnama

    (@vesnama)

    OK, thank you for your replies. Looking forward to the 2.9 update. Any approximation of when we can expect it?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vesnama

    We do not have a release date yet, you can follow progress on GitHub!
    https://github.com/pods-framework/pods/milestone/62

    Cheers, Jory

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Multiple choice custom list’ is closed to new replies.