Page 1 of 1

0 is not a valid response in custom fields

Posted: Fri Jul 30, 2010 5:24 pm
by Tech NO Babble
Script URL:http://www.snowbirdbaseball.com/registration-center/
Version of script:2.2
Hosting company:Tech NO Babble
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:0 is not a valid response in custom fields

Write your message below:
Love the program and thanks for your earlier help with submitting a ticket without using subject and message.

I created custom fields and made them mandatory and one such field requires a number, but if zero is the answer and you put in 0, when you submit you are told that 0 is not a valid response.

At this time, I have not made the custom field mandatory, so that tickets can be submitted.

Thanks in advance for any help on this.

Posted: Wed Aug 04, 2010 8:56 am
by Klemen
In file inc/common.inc.php try changing

Code: Select all

elseif ($error)
to

Code: Select all

elseif ($error && $in != 0)

Posted: Mon Aug 09, 2010 6:33 pm
by Tech NO Babble
Thanks I will make that mod.

If you have time, you can check out how it looks on my client's site,
http://www.snowbirdbaseball.com/2010-20 ... .php?a=add
and
http://www.snowbirdbaseball.com/2010-20 ... .php?a=add

I was able to get the php weather script and all my javascripts to work! I did have to change the doctype to match, but I think it looks great!

Thanks so much for such a great script!