Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Help with default field value

Quote Reply
Help with default field value
Hi,

I have a field named Ranking, Column Type INT, Not Null Yes, Default Value 1
The default value of 1 is there if i add a site through the admin but if added through the add form I get a default value of 0.

How can I fix this?
Quote Reply
Re: [rascal] Help with default field value In reply to
I tested my copy and it's using the default. Are you sure you aren't passing in 0 in the include_form.html template?

Adrian
Quote Reply
Re: [brewt] Help with default field value In reply to
Hi Adrian,

I'm not passing in the valve of 0, checked the template carefully. I even removed zerofill '0' in the Def file.
Quote Reply
Re: [rascal] Help with default field value In reply to
Adrian you were right, I was passing the value of 0 through add_system_fields, there I found I did have the Ranking value of 0.