subcategories should be populated according to selection of category #2751
Unanswered
gauravsapkal1
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hello @gauravsapkal1, I think I understand what you are trying to do. Have you looked at https://payloadcms.com/docs/fields/relationship#filtering-relationship-options Does that make sense? Good luck! |
Beta Was this translation helpful? Give feedback.
1 reply
-
@gauravsapkal1 I'm using subcategories in this way:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using payloadcms and in collection of posts I have
{
name: "category",
type: "relationship",
relationTo: "categories",
required:true
}, this category field , now I want to include subcategories field but it should show subcategories only from array which is present in selected category i also have subcategories collection and subcategories present in every category from that collection only
Beta Was this translation helpful? Give feedback.
All reactions