Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to make "ALL" Fields required ?

Quote Reply
How to make "ALL" Fields required ?
On my add url submit form I have:
Category, Email Address, Title, Description, and URL.

If all fields are left empty and the form is submitted, the add_error.html page reports:
- Column Title can not be left blank. and
- Column Url can not be left blank.

I checked the add.html and I have: value="<%if Contact_Email%><%Contact_Email%><%endif%>
and so on for each field value....

Why is the add_error.html only reporting the "Column Title" and "Column Url" as being left blank, and how can I make it so all fields are required and display all errors in the add_error.html ?

Thanks for your reply !

Quote Reply
Re: How to make "ALL" Fields required ? In reply to
To force someone adding a link to specify category goto setup-> build options and set db_gen_category_list to no. They will the have to select add from the category they want to be in. This means no adds to non-existant or blank categories and also speeds up add and validate as a pull-down list of categories is not generated (smaller html file sent).
For the other fields goto Database-> Editor-> Links Properties and set Not Null to yes and they will then be required.