Hi @vesnama
This can only be done with custom post type relationships.
All other relationship types cannot be added dynamically.
Cheers, Jory
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?
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
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)
?
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
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! ๐โค๏ธ
Hi @vesnama
Correct. Taxonomies are then added through WordPress core, not Pods custom fields ๐
Cheers, Jory
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 ๐ณ
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
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.
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
OK, thank you for your replies. Looking forward to the 2.9 update. Any approximation of when we can expect it?
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