Link to home
Start Free TrialLog in
Avatar of sandshakimi
sandshakimiFlag for United States of America

asked on

How to Make File Description Field Required ?

Use case: Users who are authorized to use this edit page are 1) required to upload at least one file, and 2) must associate a description with that file.

Plus: How can I edit "Description" to display "Alternative File Name" ?

User generated image
Avatar of Hans Langer
Hans Langer

have you tried with Javascript?. I don't really know what is the context and what access do you have to modify the page:

if(document.getElementById('filename').value=='' || document.getElementById('filedescription').value==''){
   alert('Please Choose File and type a Description')
  return false
}

Open in new window

Avatar of sandshakimi

ASKER

I've got Drupal Admin, and access to the codebase.

Where would I pu this JS?
ASKER CERTIFIED SOLUTION
Avatar of Hans Langer
Hans Langer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial