Users select from a dropdown list attribute when adding or editing metadata for an asset. Depending on what they select, the next attribute should be mandatory or not.
Users can select 'Yes' or 'No' from a dropdown attribute called 'Usage Restrictions Apply'. If they select 'Yes', the next attribute (a text area called 'Restriction Notes') must be filled in. If they select 'No' from the dropdown they do not have to enter anything.
- Click 'Edit' next to the dropdown attribute in Admin->Attributes.
if (this.value=='21' && document.getElementById('field706').value=='')
else if (this.value=='20' && document.getElementById('field706').value=='N/A')