There are two Fields, Image and Video Users have to use only one field, image or video. The problem is how do I remove video field if user upload a image ? is there any custom validation for this ?
Thanks
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityThe Conditional fields module can do this. It allows to set up conditions and dependencies between multiple files (for example, only show field X if field Y is filled/checked).
You have to use hook_form_alter
to add your own validate handler to your content type form. For example code View this question.