Forums

Mandatory entries?

cb1 29 Sep, 2008
Hey,

Question came up regarding making some form pick mandatory. Like checkboxes for - Visa, Mastercard, or Check by mail. As a client received a form response with none checked.

What makes things mandatory?

Thoughts? Help?
Max_admin 29 Sep, 2008
you will need to use the one-required validation option at the validation tab, write there the checkbox name!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cb1 29 Sep, 2008
Do I need to "Enable Validation" first?

I put this in - then saved, then filled out the form - but it did not make me go back to fix?

I turned on Validation and it worked... HOW do I style the Warning Message?
Max_admin 29 Sep, 2008
Hi, yes you need to enable validation first, did you do this ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cb1 29 Sep, 2008
Yes - Now I'd like to changet he style of the warning message - it is currently grey - an all my other text is grey. But I want it bold and red.

Here is the code from firebug:

<div id="advice-validate-one-required-Send_Check" class="validation-advice" style="opacity: 0.999999;">Please select one of the above options.</div>


Don't know where to track down that style?
Max_admin 29 Sep, 2008
at your css :

.validation-advice{
font-weight:bold;
color:#ff0000;
}

or may be try to edit this CSS between style tags in the form code itself and see if it will work ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cb1 29 Sep, 2008
Oh - so I may just have to add the style... you all went ahead and named it... I get it. I'll try it...
cb1 30 Sep, 2008
That seemed to work well -

but now I have another issue I'm waiting on confirmation on.

The person with whom the email form goes too went and tried the form without filling out the creadit card information.

Surprisingly - it DID NOT return a warning to her. I am waiting for an IT person on their end to try it.

But in the meantime - would there be anything that stands out to you as to why this might happen?

Thanks
GreyHead 30 Sep, 2008
Hi cb1,

What is the code for the credit card field? and what validation is set on it?

Bob
cb1 30 Sep, 2008
The link is here:
https://www.andersonhospital.org/index.php?option=com_chronocontact&chronoformname=Founders_Ball_RSVP&Itemid=147

The code is here:
  <form method="POST" action="../_vti_bin/shtml.dll/sp/rsvp.htm" webbot-action="--WEBBOT-SELF--">
    <!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan B-Reverse-Chronology="FALSE" S-Builtin-Fields S-Email-Format="TEXT/PRE" S-Email-Address="gaddise@andersonhospital.org" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="RSVP - Founders Ball " B-Email-ReplyTo-From-Field="FALSE" S-Email-ReplyTo="webmaster@andersonhospital.org" U-Confirmation-Url="https://www.andersonhospital.org/sp/rsvp_confirmation.htm" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->

<style type="text/css">
.validation-advice{
font-weight:bold;
color:#ff0000;
}
</style>

  <div style="width:600px; padding-left:20px;">  <p><span style="font-size:16px; font-weight:bold; color:#659fde;lang="en-us">2008 Founders Ball Response Card</span></p>
    <p><span lang="en-us">Use our secure form below to submit your RSVP or print this page and mail to: Anderson Hospital 6800 State Route 162, Maryville, IL 62062-8500, Attention: Emily Gaddis</span></p>
				  <p><span lang="en-us">Name:<br />
			      <input type="text" name="Name" size="60">
				  </span></p>
    <p><span lang="en-us">Business (If Applicable)<br />
      <input type="text" name="Business" size="60">
    </span></p>
    <p><span lang="en-us">Address:<br />
          <input name="Address" type="text" value="" size="60" />
    </span></p>
   
				  <p><span lang="en-us">City:
			      <input type="text" name="City" size="20">  State:<select name="state"  id="presentstatepulldown">
   <option value="">None
     <option value="AL">Alabama
       <option value="AK">Alaska
        <option value="AZ">Arizona
        <option value="AR">Arkansas
        <option value="CA">California
        <option value="CO">Colorado
        <option value="CT">Connecticut
        <option value="DE">Delaware
        <option value="FL">Florida
        <option value="GA">Georgia
        <option value="HI">Hawaii
        <option value="ID">Idaho
        <option value="IL"  Selected>Illinois
        <option value="IN">Indiana
        <option value="IA">Iowa
        <option value="KS">Kansas
        <option value="KY">Kentucky
        <option value="LA">Louisiana
        <option value="ME">Maine
        <option value="MD">Maryland
        <option value="MA">Massachusetts
        <option value="MI">Michigan
        <option value="MN">Minnesota
        <option value="MS">Mississippi
        <option value="MO">Missouri
        <option value="MT">Montana
        <option value="NE">Nebraska
        <option value="NV">Nevada
        <option value="NH">New Hampshire
        <option value="NJ">New Jersey
        <option value="NM">New Mexico
        <option value="NY">New York
        <option value="NC">North Carolina
        <option value="ND">North Dakota
        <option value="OH">Ohio
        <option value="OK">Oklahoma
        <option value="OR">Oregon
        <option value="PA">Pennsylvania
        <option value="RI">Rhode Island
        <option value="SC">South Carolina
        <option value="SD">South Dakota
        <option value="TN">Tennessee
        <option value="TX">Texas
        <option value="UT">Utah
        <option value="VT">Vermont
        <option value="VA">Virginia
        <option value="WA">Washington
        <option value="DC">Washington D.C.
        <option value="WV">West Virginia
        <option value="WI">Wisconsin
        <option value="WY">Wyoming        </option></SELECT>
			      <br /><br />
                  
			Zip: 
        <input type="text" name="Zip" size="5"> 
        </span>  <span lang="en-us">Telephone:
        <input type="text" name="Telephone" size="20">
             
        </span></p>
    <hr />
				   <p><span lang="en-us">Please reserve
			      <input type="text" name="Number_of_seats" size="5"> 
			      seats @ $150 each for a 
			      total of $ 
			      <input type="text" name="Total_Price_Seats" size="10"></span></p>
    <p><input type="checkbox" name="Cannot_Attend" value="ON"><span lang="en-us">I 
				    cannot attend, But please accept my donation of $
			      <input type="text" name="Donation_Amount" size="10"> for the <strong>relocation and expansion of our laboratory services.</strong></span></p>
				  <p><input type="checkbox" name="Reserve_Table_of_10" value="ON"><span lang="en-us">Please 
				    reserve a table of 10 @ $1500 (Please submit names at the bottom 
			      of this form.)</span></p>
				  <p><span lang="en-us">Table Reserved By:<br />
				  </span><span lang="en-us">
			      <input type="text" name="Table_Reserved_By" size="50">
                  </span></p>
    <p><span lang="en-us">(or) Please seat us with:<br />
      <input type="text" name="Please_Seat_Us_With" size="50">
    </span></p>
    <hr>
    <p><span lang="en-us"><b><font size="4">Payment Type: </font></b><input type="checkbox" name="Charge_Mastercard" value="ON"><b><font size="4">MasterCard</font></b>
    <input type="checkbox" name="Charge_Visa" value="ON"><b><font size="4">Visa</font></b></span><input type="checkbox" name="Send_Check" value="ON"><b><font size="4">Mailing Check</font></b></span></p><b><font size="1">Make checks payable to Anderson Hospital</font></b></span></p>

				  <p><span lang="en-us">Card Number
			          <br />
		          <input type="text" name="Card_Number" size="30"></span></p>
    <p><span lang="en-us">3 digit Security Code on back of card
			      <input type="text" name="Security_Code" size="5"></span></p>
				  <p><span lang="en-us">Card Expires on:
			          <input type="text" name="Expiration" size="20"></span></p>
				  <p><span lang="en-us">Name on Card:<br />
		          <input type="text" name="Name_On_Card" size="50"></span></p>
    <p><span lang="en-us">Reservations Taken Until October 29th, 2008</span></p>
				  <p><span lang="en-us">For reservations or to make special 
			      dietary requests call 618-288-5711 Extension 5366.</span></p>
				  <p><span lang="en-us">Special Hotel accommodations are available at the Renaissance Grand Hotel. Call 314-621-9600, ask for 
    reservations and specify an Anderson Hospital room.</span></p>
				  <p><span lang="en-us">Anderson Hospital is a tax-exempt corporation pursuant to section 501(c)(3) of the Internal Revenue Code. Gifts to the Hospital are tax deductible to the extent allowed by law.</span></p>
				  <hr>
    <p align="center"><b><span lang="en-us"><font size="4">Table 
      Information</font></span></b></p>
				  <p><span lang="en-us">Please identify my table by the company 
				    name of:
			      <input type="text" name="Identify_Table_Company" size="50">
    </span></p>
				  <p><span lang="en-us">or by the name of:
			          <br />
		          <input type="text" name="Identify_Table_Person" size="50">
    </span></p>
    <p><span lang="en-us">Place the following persons at my table:</span></p>
				  <p><span lang="en-us">1.
			      <input type="text" name="Person_1" size="50"></span></p>
				  <p><span lang="en-us">2.
			      <input type="text" name="Person_2" size="50"></span></p>
				  <p><span lang="en-us">3.
			      <input type="text" name="Person_3" size="50"></span></p>
				  <p><span lang="en-us">4.
			      <input type="text" name="Person_4" size="50"></span></p>
				  <p><span lang="en-us">5.
			      <input type="text" name="Person_5" size="50"></span></p>
				  <p><span lang="en-us">6.
			      <input type="text" name="Person_6" size="50"></span></p>
				  <p><span lang="en-us">7.
			      <input type="text" name="Person_7" size="50"></span></p>
				  <p><span lang="en-us">8.
			      <input type="text" name="Person_8" size="50"></span></p>
				  <p><span lang="en-us">9.
			      <input type="text" name="Person_9" size="50"></span></p>
				  <p><span lang="en-us">10.
			      <input type="text" name="Person_10" size="49"></span></p>
				  <p> </p>
				  <p> </p>
				  <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p></div>
</form>


And the Validation is #12 under the validation tab: Send_Check, Charge_Visa, Charge_Mastercard
GreyHead 30 Sep, 2008
Hi cb1,

Tested in FF and the validation appears to work perfectly?

There is no validation on the Credit card field itself.

Bob

PS You probably need to delete the second form tag with the 'webbot' code as multiple form tags often cause problems.
cb1 30 Sep, 2008
Thanks Grey...

It works for me too... do you have AnY idea why it might not be working internally?

I will ask about the other form code - I did not create the form and don't know if there is something I should not touch in it.
GreyHead 30 Sep, 2008
Hi cb1,

There should be no difference between an internal and an external test.

I suggest that you double-check what the problem is - could be that they are checking the credit card field, not the check-boxes.

Bob
cb1 06 Oct, 2008
Hey,

I have duplicated the problem...

it seems to NOT be working correctly - meaning it submits the form WITHOUT prompting the choice of a credit card or check - in IE7 browser and IE6 browser - both on the PC.

Thoughts?
GreyHead 07 Oct, 2008
Hi cb1,

FireBug shows a JavaScript error from the Google Maps code. You don't seem to have a map on the form page so I'd suggest disabling this here and see if that removes the problem. A JavaScript conflict is the most likely cause of this kind of validation inconsistency.

You might also try switching the validation library from Prototype to MooTools in case this is a conflict between the Google Maps and Prototype libraries.

Bob
This topic is locked and no more replies can be posted.