Conditional Categories
-
I am creating a site that has submission functionality. I am trying to create a form that allows a user to choose whether the submission is a photo, video, or written submission; based on this initial choice, specific fields will display for the user to choose from and submit.
The problem is that I need to add featured image and categories multiple times to the form. For example: On the Photo submit, featured image is required, whereas on the other two, it is not. I require having the field there twice and displaying the mandatory one only when photo submission is selected.
This is the same with the categories. There are categories that should only show depending on the type of submission, but I cannot place multiple category selects to filter through with EXCLUDE/INCLUDE terms.
There is only one submissions post type as they are displayed in the same section of the website and can be filtered easily enough with if statements. I would like it if I can only use one form with conditional logic rather than have to build three separate forms on three different pages.
Is there any way to do this? Thank you.
The topic ‘Conditional Categories’ is closed to new replies.