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.
Your attribute ID is included in the URL of the Attribute edit page - go to Admin > Attributes > Edit and you should see the URL in the following format:
The same applies to 'Yes' and 'No' values - you can locate these in the URL of Admin > Attribute > Edit list values > Edit.
if (this.value=='21' && document.getElementById('field706').value=='')
else if (this.value=='20' && document.getElementById('field706').value=='N/A')