We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    Hi;

    I have a custom validator that is ~supposed~ to be running on a profile edit form. The problem is that if the snippet returns anything BUT ’true’ I get this error:

     [2011-05-24 21:47:26] (ERROR @ /index.php) [Register] Validator "aiRequired" for field "validate-ai" was not specified in the customValidators property.
    


    The validator is present in the call "&customValidators=`aiRequired,agreeEULA`", the snippet exists and if I put the only line in there as
    return true;
    it works fine - I dont get the error [however it does not validate either.] If the snippet contains something like
    return 'this horrific error!!';
    I get an error message in the logs.... and the form won’t process or validate ....

    Anyone come across this problem before? solutions?

    -thanks
    -sean
      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525
      • 3749
      • 24,544 Posts
      I wonder if the hyphen in your field name could be causing trouble.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 26503
        • 620 Posts
        no - most of the fields have dashes in the names, & it does work of the snippet returns ’true’

          *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

          Sean Kimball CLP, CLS.
          Technical Director / Sr. Developer | BigBlock Studios
          ._______________________________________________.
          Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
          27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
          phone/fax: 905-426-5525
          • 3749
          • 24,544 Posts
          Quote from: sean69 at May 25, 2011, 12:56 PM

          no - most of the fields have dashes in the names, & it does work of the snippet returns ’true’

          Post your FormIt tag, the form, and your custom validator code.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 26503
            • 620 Posts
            Just getting back to this today, have a couple ideas myself.
            - could be because the field is a hidden field & not the actual one that is being validated?
            - will try testing the custom validator on another field.

            Here is the form:
            
            
            
            [[!UpdateProfile?
                 &submitVar=`login-updprof-btn`     
                 &redirectToLogin=`true`     
                 &reloadOnSuccess=`true`     
                 &useExtended=`true`  
                 &preHooks=`profileEditCheckBoxes,RegisterProfilePreHook`
                 &customValidators=`aiRequired,agreeEULA`
            ]]
            
            
            <div class="register">
            	<div class="message">
            		<div class="updprof-error">[[+error.message]]</div>
            		<div class="updprof-success">[[+login.update_success:if=`[[+login.update_success]]`:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]</div>
            	</div>
            	
            	
             
            	<form class="form" action="[[~[[*id]]]]" method="post">
                    <input type="hidden" name="nospam:blank" value="" />
            		
            		<ul>
            			<li>
            				<h4>Profile Information </h4>
            			</li>
            			<li>
            				<label>Salutation:<span class="form-required">*</span></label>
            				<select name="salutation:required" class="form-select" id="salutation" >
            					<option value="" selected="selected"> </option>
            					<option value="Dr." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Dr.` &then=`selected="selected"` ]]>Dr.</option>
            					<option value="Mr." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Mr.` &then=`selected="selected"` ]] >Mr.</option>
            					<option value="Mrs." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Mrs.` &then=`selected="selected"` ]]>Mrs.</option>
            					<option value="Ms." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Ms.` &then=`selected="selected"` ]]>Ms.</option>
            				</select>
            				<span class="error">[[+error.salutation]]</span>
            				
            			</li>
            			<li>
            				<label for="firstname">First Name<span class="form-required">*</span></label>
            				<input type="text" name="firstname:required" id="firstname" value="[[+firstname]]" />
            				<span class="error">[[+error.firstname]]</span>
            			</li>
            			<li>
            				<label for="lastname">Last Name<span class="form-required">*</span></label>
            				<input type="text" name="lastname:required" id="lastname" value="[[+lastname]]" />
            				<span class="error">[[+error.lastname]]</span>
            			</li>
            			<li>
            				<label for="email">[[%register.email]]<span class="form-required">*</span></label>
            				<input type="text" name="email:required:email" id="email" value="[[+email]]" />
            				<span class="error">[[+error.email]]</span>
            			</li>
            			<li>
            				<label>Specialty:<span class="form-required">*</span></label>
            				<ul class="form-radios">
            					<li>
            						<label>Medical Oncologist / Hematologist</label>
            						<input type="radio" name="specialty:required" value="Medical Oncologist / Hematologist"   class="form-radio" 
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Medical Oncologist / Hematologist` &then=`checked="checked" ` ]]/>
            					</li>
            					<li>
            						<label>Surgical/Radiation Oncologist</label>
            						<input type="radio" name="specialty:required" value="Surgical/Radiation Oncologist"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Surgical/Radiation Oncologist` &then=`checked="checked"` ]] />
            					</li>
            					<li>
            						<label>Palliative Care Specialist (Oncology)</label>
            						<input type="radio" name="specialty:required" value="Palliative Care Specialist (Oncology)"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Palliative Care Specialist (Oncology)` &then=`checked="checked"` ]] />
            					</li>
            					<li>
            						<label>General Practitioner in Oncology (GPO)</label>
            						<input type="radio" name="specialty:required" value="General Practitioner in Oncology (GPO)"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`General Practitioner in Oncology (GPO)` &then=`checked="checked"`]] />
            					</li>
            					<li>
            						<label>General Practitioner</label>
            						<input type="radio" name="specialty:required" value="General Practitioner"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`General Practitioner` &then=`checked="checked"`]] />
            					</li>
            					<li>
            						<label>Nurse</label>
            
            						<input type="radio" name="specialty:required" value="Nurse"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Nurse` &then=`checked="checked"`]] />
            					</li>
            					<li>
            						<label>Pharmacist</label>
            						<input type="radio" name="specialty:required" value="Pharmacist"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Pharmacist` &then=`checked="checked"`]] />
            					</li>
            					<li>
            						<label>Other (see below)</label>
            						<input type="radio" name="specialty:required" value="Other (see below)"   class="form-radio"
            						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Other (see below)` &then=`checked="checked"`]] />
            					</li>
            					<li>
            						<label>Specialty Other: </label>
            						<input type="text" name="specialty-other" id="specialty-other" size="60" value="[[+specialty-other]]" class="form-text" />
            					</li>
            				</ul>
            				<span class="error">[[+error.specialty]]</span>
            			</li>
            			<li>
            				<label>Staff/Resident:<span class="form-required">*</span></label>
            				<ul>
            					<li>
            						<label>Staff</label>
            						<input type="radio" name="staff-or-resident" value="Staff"   class="form-radio"
            						[[!If? &subject=`[[+staff-or-resident]]` &operator=`EQ`  &operand=`staff` &then=`checked="checked"`]]  />
            					</li>
            					<li>
            						<label>Resident</label>
            						<input type="radio" name="staff-or-resident" value="Resident"   class="form-radio"
            						[[!If? &subject=`[[+staff-or-resident]]` &operator=`EQ`  &operand=`Resident` &then=`checked="checked"`]] />
            					</li>
            					<span class="error">[[+error.staff-or-resident]]</span>
            				</ul>
            			</li>
            			<li>
            				<label>Institution:<span class="form-required">*</span> </label>
            				<input type="text" maxlength="120" name="institution:required" id="institution" size="60" value="[[+institution]]" class="form-text" />
            				<span class="error">[[+error.institution]]</span>
            			</li>
            			<li>
            				<label>Country:<span class="form-required">*</span> </label>
            				<input type="text" name="excountry:required" id="country" size="60" value="[[+excountry]]" class="form-text" />
            				<span class="error">[[+error.excountry]]</span>
            			</li>
            			<li>
            				<label>Province:<span class="form-required">*</span> </label>
            				<select name="province:required" class="form-select" id="province" >
            					<option value="" selected="selected"> </option>
            					<option value="Alberta" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Alberta` &then=`selected="selected"` ]]>Alberta</option>
            					<option value="British Columbia" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`British Columbia` &then=`selected="selected"` ]]>British Columbia</option>
            					<option value="Manitoba" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Manitoba` &then=`selected="selected"` ]]>Manitoba</option>
            					<option value="New Brunswick" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`New Brunswick` &then=`selected="selected"` ]]>New Brunswick</option>
            					<option value="Newfoundland and Labrador" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Newfoundland and Labrador` &then=`selected="selected"` ]]>Newfoundland and Labrador</option>
            					<option value="Northwest Territories" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Northwest Territories` &then=`selected="selected"` ]]>Northwest Territories</option>
            					<option value="Nova Scotia" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Nova Scotia` &then=`selected="selected"` ]]>Nova Scotia</option>
            					<option value="Nunavut" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Nunavut` &then=`selected="selected"` ]]>Nunavut</option>
            					<option value="Ontario" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Ontario` &then=`selected="selected"` ]]>Ontario</option>
            					<option value="Prince Edward Island" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Prince Edward Island` &then=`selected="selected"` ]]>Prince Edward Island</option>
            					<option value="Quebec" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Quebec` &then=`selected="selected"` ]]>Quebec</option>
            					<option value="Saskatchewan" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Saskatchewan` &then=`selected="selected"` ]]>Saskatchewan</option>
            					<option value="Yukon" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Yukon` &then=`selected="selected"` ]]>Yukon</option>
            				</select>
            				<span class="error">[[+error.province]]</span>
            			</li>
            			<li>
            				<label>City:<span class="form-required">*</span> </label>
            				<input type="text" maxlength="40" name="excity:required" id="city" size="40" value="[[+excity]]" class="form-text" />
            				<span class="error">[[+error.excity]]</span>
            			</li>
            			<li>
            				<label>Telephone: </label>
            				<input type="text" maxlength="15" name="telephone" id="telephone" size="15" value="[[+telephone]]" class="form-text" />
            			</li>
            			<li>
            				<label>Extension: </label>
            				<input type="text" maxlength="5" name="extension" id="extension" size="5" value="[[+extension]]" class="form-text text" />
            			</li>
            		</ul>
            		<ul>
            			<li>
            				<h4>Academic Interest</h4>
            			</li>
            			<li>
            			
            			
            			<ul>
            				<li>
            					<label>Academic Interests:<span class="form-required">*</span> [[+academic-interests]]</label>
            					<span class="error">[[+error.aiRequired]]</span>
            					<input name="validateai:aiRequired" type="hidden" value="validate" />			
            				</li>
            				<li>
            					<label>Education</label>
            					<input name="ai-education" type="checkbox" id="ai-education" value="Education" [[!If? &subject=`[[+ai-education]]` &operator=`ia`  &operand=`Education` &then=` checked ` ]] />
            				</li>
            				
            				<li>
            					<label>Educational Research</label>
            					<input name="ai-educational-research" type="checkbox" id="ai-educational-research" value="Educational Research" [[!If? &subject=`[[+ai-educational-research]]` &operator=`ia`  &operand=`Educational Research` &then=` checked ` ]] />
            				</li>
            				
            				<li>
            					<label>Basic Science Research</label>
            					<input name="ai-basic-science-research" type="checkbox" id="ai-basic-science-research" value="Basic Science Research" [[!If? &subject=`[[+ai-basic-science-research]]` &operator=`ia`  &operand=`Basic Science Research` &then=` checked ` ]] />
            				</li>
            				
            				<li>
            					<label>Phase I/II Clinical Trials</label>
            					<input name="ai-phase-i-ii-clinical-trials" type="checkbox" id="ai-phase-i-ii-clinical-trials" value="Phase I/II Clinical Trials" [[!If? &subject=`[[+ai-phase-i-ii-clinical-trials]]` &operator=`ia`  &operand=`Phase I/II Clinical Trials` &then=` checked ` ]] />
            				</li>
            				
            				<li>
            					<label>Phase III Clinical Trials</label>
            					<input name="ai-phase-iii-clinical-trials" type="checkbox" id="ai-phase-iii-clinical-trials" value="Phase III Clinical Trials" [[!If? &subject=`[[+ai-phase-iii-clinical-trials]]` &operator=`ia`  &operand=`Phase III Clinical Trials` &then=` checked ` ]] />
            				</li>
            				
            				
            				<li>
            					<label>Health Services Research</label>
            					<input name="ai-health-services-research" type="checkbox" id="ai-health-services-research" value="Health Services Research" [[!If? &subject=`[[+ai-health-services-research]]` &operator=`ia`  &operand=`Health Services Research` &then=` checked ` ]] />
            				</li>
            				
            				
            				<li>
            					<label>Transitional Research</label>
            					<input name="ai-transitional-research" type="checkbox" id="ai-transitional-research" value="Transitional Research" [[!If? &subject=`[[+ai-transitional-research]]` &operator=`ia`  &operand=`Transitional Research` &then=` checked ` ]] />
            				</li>
            				
            				
            				<li>
            					<label>Not Applicable</label>
            					<input name="ai-not-applicable" type="checkbox" id="ai-not-applicable" value="Not Applicable" [[!If? &subject=`[[+ai-not-applicable]]` &operator=`ia`  &operand=`Not Applicable` &then=` checked ` ]] />
            				</li>
            				
            			</ul>
            			
            			<!--
            				<label>Academic Interests:<span class="form-required">*</span> [[+academic-interests]]</label>
            				<select name="academic-interests:required" multiple="multiple"  class="form-select" id="academic-interests" >
            					<option value="" selected="selected"></option>
            					<option value="Education" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Education` &then=`selected="selected"` ]]>Education</option>
            					<option value="Educational Research" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Educational Research` &then=`selected="selected"` ]]>Educational Research</option>
            					<option value="Basic Science Research" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Basic Science Research` &then=`selected="selected"` ]]>Basic Science Research</option>
            					<option value="Phase I/II Clinical Trials" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Phase I/II Clinical Trials` &then=`selected="selected"` ]]>Phase I/II Clinical Trials</option>
            					<option value="Phase III Clinical Trials" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Phase III Clinical Trials` &then=`selected="selected"` ]]>Phase III Clinical Trials</option>
            					<option value="Health Services Research" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Health Services Research` &then=`selected="selected"` ]]>Health Services Research</option>
            					<option value="Transitional Research" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Transitional Research` &then=`selected="selected"` ]]>Transitional Research</option>
            					<option value="Not Applicable" [[!If? &subject=`[[+academic-interests]]` &operator=`ia`  &operand=`Not Applicable` &then=`selected="selected"` ]]>Not Applicable</option>
            				</select>
            				<span class="error">[[+error.academic-interests]]</span>
            				<p class="instruction">(hold CTRL key to make multiple selections)</p>
            			</li>
            			-->
            			</li>
            			<li>
            				<label>Other: </label>
            				<input type="text" name="other-academic-interest" id="other-academic-interest" size="60" value="[[+other-academic-interest]]" class="form-text" />
            			</li>
            			<li>
            				<label for="academic-interest-specifics">Specifics: </label>
            				<textarea cols="60" rows="5" name="academic-interest-specifics" id="academic-interest-specifics"  class="form-textarea">[[+academic-interest-specifics]]</textarea>
            			</li>
            		</ul>
            		<ul>
            			<li>
            				<h4>Clinical Interest</h4>
            			</li>
            
            <li>
            <ul>
            
            	<li>
            		<label>Breast</label>
            		<input name="ci-breast" type="checkbox" id="ci-breast" value="Breast" [[!If? &subject=`[[+ci-breast]]` &operator=`ia`  &operand=`Breast` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Lung</label>
            		<input name="ci-lung" type="checkbox" id="ci-lung" value="Lung" [[!If? &subject=`[[+ci-lung]]` &operator=`ia`  &operand=`Lung` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>GI</label>
            		<input name="ci-gi" type="checkbox" id="ci-gi" value="GI" [[!If? &subject=`[[+ci-gi]]` &operator=`ia`  &operand=`GI` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>GU</label>
            		<input name="ci-gu" type="checkbox" id="ci-gu" value="GU" [[!If? &subject=`[[+ci-gu]]` &operator=`ia`  &operand=`GU` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Head and Neck</label>
            		<input name="ci-head-and-neck" type="checkbox" id="ci-head-and-neck" value="Head and Neck" [[!If? &subject=`[[+ci-head-and-neck]]` &operator=`ia`  &operand=`Head and Neck` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Gynecology</label>
            		<input name="ci-gynecology" type="checkbox" id="ci-gynecology" value="Gynecology" [[!If? &subject=`[[+ci-gynecology]]` &operator=`ia`  &operand=`Gynecology` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Sarcoma</label>
            		<input name="ci-sarcoma" type="checkbox" id="ci-sarcoma" value="Sarcoma" [[!If? &subject=`[[+ci-sarcoma]]` &operator=`ia`  &operand=`Sarcoma` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Melanoma</label>
            		<input name="ci-melanoma" type="checkbox" id="ci-melanoma" value="Melanoma" [[!If? &subject=`[[+ci-melanoma]]` &operator=`ia`  &operand=`Melanoma` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Supportive Care</label>
            		<input name="ci-supportive-care" type="checkbox" id="ci-supportive-care" value="Supportive Care" [[!If? &subject=`[[+ci-supportive-care]]` &operator=`ia`  &operand=`Supportive Care` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Lymphoma</label>
            		<input name="ci-lymphoma" type="checkbox" id="ci-lymphoma" value="Lymphoma" [[!If? &subject=`[[+ci-lymphoma]]` &operator=`ia`  &operand=`Lymphoma` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Myeloma</label>
            		<input name="ci-myeloma" type="checkbox" id="ci-myeloma" value="Myeloma" [[!If? &subject=`[[+ci-myeloma]]` &operator=`ia`  &operand=`Myeloma` &then=` checked ` ]] />
            	</li>
            	<li>
            		<label>Palliative Care</label>
            		<input name="ci-palliative-care" type="checkbox" id="ci-palliative-care" value="Palliative Care" [[!If? &subject=`[[+ci-palliative-care]]` &operator=`ia`  &operand=`Palliative Care` &then=` checked ` ]] />
            	</li>
            </ul>			
            			
            			
            			
            			</li>
            			
            			
            			
            			
            			<!--
            			<li>
            				<label>Clinical Interest: </label>
            				<select name="clinical-interest" multiple="multiple"  class="form-select" id="clinical-interest" >
            					<option value="" selected="selected">- None -</option>
            					<option value="Breast" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Breast` &then=`selected="selected"` ]]>Breast</option>
            					<option value="Lung" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Lung` &then=`selected="selected"` ]]>Lung</option>
            					<option value="GI" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`GI` &then=`selected="selected"` ]]>GI</option>
            					<option value="GU" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`GU` &then=`selected="selected"` ]]>GU</option>
            					<option value="Head &amp; Neck" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Head &amp; Neck` &then=`selected="selected"` ]]>Head & Neck</option>
            					<option value="Gynecology" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Gynecology` &then=`selected="selected"` ]]>Gynecology</option>
            					<option value="Sarcoma" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Sarcoma` &then=`selected="selected"` ]]>Sarcoma</option>
            					<option value="Melanoma" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Melanoma` &then=`selected="selected"` ]]>Melanoma</option>
            					<option value="Supportive Care" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Supportive Care` &then=`selected="selected"` ]]>Supportive Care</option>
            					<option value="Lymphoma" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Lymphoma` &then=`selected="selected"` ]]>Lymphoma</option>
            					<option value="Myeloma" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Myeloma` &then=`selected="selected"` ]]>Myeloma</option>
            					<option value="Palliative Care" [[!If? &subject=`[[+clinical-interest]]` &operator=`EQ`  &operand=`Palliative Care` &then=`selected="selected"` ]]>Palliative Care</option>
            				</select>
            				<p class="instruction">(hold CTRL key to make multiple selections)</p>
            			</li>
            			-->
            			
            			<li>
            				<label for="clinical-interest-other">Other: </label>
            				<input type="text" name="clinical-interest-other" id="clinical-interest-other" size="60" value="[[+clinical-interest-other]]" class="form-text" />
            			</li>
            			<li>
            				<label for="clinical-interest-specifics">Specifics: </label>
            				<textarea cols="60" rows="5" name="clinical-interest-specifics" id="clinical-interest-specifics"  class="form-textarea">[[+clinical-interest-specifics]]</textarea>
            			</li>
            		</ul>
            		<ul class="eula">
            			<li>
            				<h4>EULA [required]</h4>
            			</li>
            			<li>
            				<p>Agreement: I have read and I agree to the <a href="[[~217]]" target="_blank">conditions and terms of use</a>.</p>
            				<ul>
            				
            				<li>[[+eula-agreement]]</li>
            				</ul>
            			</li>
            		</ul>
            		<ul class="database">
            			<li>
            				<h4>Medical Oncologist Database [required]</h4>
            			</li>
            			<li>
            				<p>I agree to have this information included in the database and I understand that the use of this database is subject to the terms outlined in the privacy policy of the website.</p>
            				<ul>
            				<li>
            						<label><span class="error">[[+error.oncologist-database]]</span></label>
            						<select name="oncologist-database:required" class="form-select" id="oncologist-database" >
            							<option value="" selected="selected"> </option>
            							<option value="No, do not include me in the oncologist database." 
            							[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`No, do not include me in the oncologist database.` &then=`selected="selected"` ]]>
            							No, do not include me in the oncologist database.</option>
            							
            							<option value="Yes, include me in the oncologist database (for Canadian Medical Oncologists only)." 
            							[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`Yes, include me in the oncologist database (for Canadian Medical Oncologists only).` &then=`selected="selected"` ]] >
            							Yes, include me in the oncologist database (for Canadian Medical Oncologists only).</option>
            						</select>
            						
            				</li>
            
            				</ul>
            				
            			</li>
            		</ul>
            		<ul class="mailchimp">
            			<li>
            				<h4>Newsletters</h4>
            				<ul>
            				<li>
            					<label>Subscribe to the OncologyEducation.ca Newsletter newsletter</label>
            				<input type="checkbox" name="mailchimp" id="edit-mailchimp-list-2964ce6445" value="1"  [[!If? &subject=`[[+mailchimp]]` &operator=`ia`  &operand=`true` &then=` checked ` ]] />
            				</li>
            				</ul>
            			</li>
            		</ul>
            		<ul>
            			<li class="register-button"><input type="submit" name="login-updprof-btn" value="Register" class="submit-registration" /></li>
            			
            		</ul>
            		
            	</form>
            </div>
            


            here is the code for the aiRequired validator

            <?php
            $formFields = $hook->getValues();
            
            $reqField = 'false';
            
            if (isset($formFields['ai-education'])){$reqField = 'true';}
            if (isset($formFields['ai-educational-research'])){$reqField = 'true';}
            if (isset($formFields['ai-basic-science-research'])){$reqField = 'true';}
            if (isset($formFields['ai-phase-i-ii-clinical-trials'])){$reqField = 'true';}
            if (isset($formFields['ai-phase-iii-clinical-trials'])){$reqField = 'true';}
            if (isset($formFields['ai-health-services-research'])){$reqField = 'true';}
            if (isset($formFields['ai-transitional-research'])){$reqField = 'true';}
            if (isset($formFields['ai-not-applicable'])){$reqField = 'true';}
            
            if ($reqField == 'true'){return $reqField;}else{return 'You must select at least one Academic Interest';}
            



            All the other validators & prehooks work [here and on the register form]


            -thanks
            -sean

              *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

              Sean Kimball CLP, CLS.
              Technical Director / Sr. Developer | BigBlock Studios
              ._______________________________________________.
              Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
              27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
              phone/fax: 905-426-5525
              • 26503
              • 620 Posts
              yea - something is not working right here - I changed the form field to:

              <span class="error">[[+error.mytestfield]]</span>
              <input name="mytestfield:aiRequired" type="text"  value="[[+mytestfield]]" id="mytestfield" class="mytestfield"/>	
              


              & the custom validator to
              <? php
              return 'an error occurred';
              


              Still getting the error in the logs & form is not processing - what’s more NOW the other fields that don’t validate are showing ’logErrTpl’ instead of the actual error!

              What’s all that about [it was definitely working before]

              -sean
                *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

                Sean Kimball CLP, CLS.
                Technical Director / Sr. Developer | BigBlock Studios
                ._______________________________________________.
                Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
                27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
                phone/fax: 905-426-5525
                • 26503
                • 620 Posts
                Looking at the actual UpdateProfile snippet:
                /* setup default properties */
                $preHooks = $modx->getOption('preHooks',$scriptProperties,'');
                $submitVar = $modx->getOption('submitVar',$scriptProperties,'login-updprof-btn');
                $redirectToLogin = $modx->getOption('redirectToLogin',$scriptProperties,true);
                $reloadOnSuccess = $modx->getOption('reloadOnSuccess',$scriptProperties,true);
                $errTpl = $modx->getOption('errTpl',$scriptProperties,'<span class="error">[[+error]]</span>');
                $emailField = $modx->getOption('email',$scriptProperties,'email');
                $validate = $modx->getOption('validate',$scriptProperties,'');
                $placeholderPrefix = $modx->getOption('placeholderPrefix',$scriptProperties,'');
                


                does not appear to support custom validators....?? is this correct?
                -sean
                  *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

                  Sean Kimball CLP, CLS.
                  Technical Director / Sr. Developer | BigBlock Studios
                  ._______________________________________________.
                  Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
                  27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
                  phone/fax: 905-426-5525
                  • 3749
                  • 24,544 Posts
                  I think you need both a &validate property (to tell it which fields to validate), and your &customValidators property (to give the names of the custom validators).

                  The validation method changed at some point. In the new method, the &validate property is required if you’re doing any validation.

                  Also, I’m not sure, but isset() may return true for all of those fields if they exist in the form. You’d might need to use empty() (or ! empty()).
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 26503
                    • 620 Posts
                    ok - now I’m frikkin baffled.... this custom validator was working on the register form [i’m 80% sure] now it’s not again ... I must be missing something really simple...

                    What is this &validate property - I don’t see it in the docs anywhere, is it &validate=`list,of,fields,to,validate` or &validate=`1|0` [or &Validate??] though everything is validating correctly on the form BUT the custom ones without the &validate property, I tried this: still getting the error in the log and a non-vbalidating form.

                    [[!Register?
                        &submitVar=`login-register-btn`
                        &activationResourceId=`211`
                        &activationEmailTpl=`lgnActivateEmailTpl`
                        &activationEmailSubject=`Thanks for Registering!`
                        &activationttl=`1440`
                        &submittedResourceId=`212`
                        &usernameField=`username`
                        &passwordField=`password`
                        &emailField=`email`
                        &preHooks=`RegisterProfilePreHook,recaptcha`
                        &validate=`1`
                        &customValidators=`aiRequired`
                        $excludeExtended=`validate-ai,recaptcha_challenge_field,recaptcha_response_field`
                    ]]
                    [[$lgnRegisterFullForm]]
                    
                    


                    and just for good measure, the form,
                    
                    
                    
                    <div class="register">
                    	<div class="message">
                    		<p>Pellentesque tincidunt ullamcorper elit, ac malesuada magna faucibus dignissim. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur blandit imperdiet augue id volutpat. Morbi vestibulum malesuada odio a sodales. Ut varius massa non libero sagittis semper. Nulla accumsan, arcu eget tempor rutrum, tellus ipsum molestie erat, ut vestibulum sapien quam ac ipsum. Aliquam lacinia laoreet diam, tempus convallis ligula sollicitudin et. Mauris aliquam rhoncus mauris ac consequat. Sed venenatis mauris et augue tempor id tempus diam fringilla. Vestibulum tristique ipsum at odio dignissim sollicitudin. Sed mauris ante, tempor ut commodo pulvinar, sollicitudin vitae lacus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>
                    	</div>
                    	<div class="registerMessage">[[+error.message]]</div>
                    	<form class="form" action="[[~[[*id]]]]" method="post">
                    		<ul>
                    			<li>
                    				<h4>Account Information</h4>
                    </li>
                    			<input type="hidden" name="nospam:blank" value="" />
                    			<li>
                    				<label for="username">[[%register.username? &namespace=`login` &topic=`register`]]<span class="form-required">*</span></label>
                    				<input type="text" name="username:required:minLength=6" id="username" value="[[+username]]" />
                    				<span class="error">[[+error.username]]</span>
                    			</li>
                    			<li>
                    				<label for="password">[[%register.password]]<span class="form-required">*</span></label>
                    				<input type="password" name="password:required:minLength=8" id="password" value="[[+password]]" />
                    				<span class="error">[[+error.password]]</span>
                    			</li>
                    			<li>
                    				<label for="password_confirm">[[%register.password_confirm]]<span class="form-required">*</span></label>
                    				<input type="password" name="password_confirm:required:password_confirm=`password`" id="password_confirm" value="[[+password_confirm]]" />
                    				<span class="error">[[+error.password_confirm]]</span>
                    			</li>
                    			<li>
                    				<label for="email">[[%register.email]]<span class="form-required">*</span></label>
                    				<input type="text" name="email:required:email" id="email" value="[[+email]]" />
                    				<span class="error">[[+error.email]]</span>
                    			</li>
                    		</ul>
                    		<ul>
                    			<li>
                    				<h4>Profile Information </h4>
                    			</li>
                    			<li>
                    				<label>Salutation:<span class="form-required">*</span></label>
                    				<select name="salutation:required" class="form-select" id="salutation" >
                    					<option value="" selected="selected"> </option>
                    					<option value="Dr." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Dr,.` &then=`selected="selected"` ]]>Dr.</option>
                    					<option value="Mr." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Mr.` &then=`selected="selected"` ]] >Mr.</option>
                    					<option value="Mrs." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Mrs.` &then=`selected="selected"` ]]>Mrs.</option>
                    					<option value="Ms." [[!If? &subject=`[[+salutation]]` &operator=`EQ`  &operand=`Ms.` &then=`selected="selected"` ]]>Ms.</option>
                    				</select>
                    				<span class="error">[[+error.salutation]]</span>
                    				
                    			</li>
                    			<li>
                    				<label for="firstname">First Name<span class="form-required">*</span></label>
                    				<input type="text" name="firstname:required" id="firstname" value="[[+firstname]]" />
                    				<span class="error">[[+error.firstname]]</span>
                    			</li>
                    			<li>
                    				<label for="lastname">Last Name<span class="form-required">*</span></label>
                    				<input type="text" name="lastname:required" id="lastname" value="[[+lastname]]" />
                    				<span class="error">[[+error.lastname]]</span>
                    			</li>
                    			<li>
                    				<label>Specialty:<span class="form-required">*</span></label>
                    				<ul class="form-radios">
                    					<li>
                    						<label>Medical Oncologist / Hematologist</label>
                    						<input type="radio" name="specialty:required" value="Medical Oncologist / Hematologist"   class="form-radio" 
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Medical Oncologist / Hematologist` &then=`checked="checked" ` ]]/>
                    					</li>
                    					<li>
                    						<label>Surgical/Radiation Oncologist</label>
                    						<input type="radio" name="specialty:required" value="Surgical/Radiation Oncologist"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Surgical/Radiation Oncologist` &then=`checked="checked"` ]] />
                    					</li>
                    					<li>
                    						<label>Palliative Care Specialist (Oncology)</label>
                    						<input type="radio" name="specialty:required" value="Palliative Care Specialist (Oncology)"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Palliative Care Specialist (Oncology)` &then=`checked="checked"` ]] />
                    					</li>
                    					<li>
                    						<label>General Practitioner in Oncology (GPO)</label>
                    						<input type="radio" name="specialty:required" value="General Practitioner in Oncology (GPO)"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`General Practitioner in Oncology (GPO)` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>General Practitioner</label>
                    						<input type="radio" name="specialty:required" value="General Practitioner"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`General Practitioner` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Nurse</label>
                    						<input type="radio" name="specialty:required" value="Nurse"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Nurse` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Pharmacist</label>
                    						<input type="radio" name="specialty:required" value="Pharmacist"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Pharmacist` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Other (see below)</label>
                    						<input type="radio" name="specialty:required" value="Other (see below)"   class="form-radio"
                    						[[!If? &subject=`[[+specialty]]` &operator=`EQ`  &operand=`Other (see below)` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Specialty Other: </label>
                    						<input type="text" name="specialty-other" id="specialty-other" size="60" value="[[+specialty-other]]" class="form-text" />
                    					</li>
                    				</ul>
                    				<span class="error">[[+error.specialty]]</span>
                    			</li>
                    			<li>
                    				<label>Staff/Resident:<span class="form-required">*</span></label>
                    				<ul>
                    					<li>
                    						<label>Staff</label>
                    						<input type="radio" name="staff-or-resident" value="Staff"   class="form-radio"
                    						[[!If? &subject=`[[+staff-or-resident]]` &operator=`EQ`  &operand=`staff` &then=`checked="checked"`]]  />
                    					</li>
                    					<li>
                    						<label>Resident</label>
                    						<input type="radio" name="staff-or-resident" value="Resident"   class="form-radio"
                    						[[!If? &subject=`[[+staff-or-resident]]` &operator=`EQ`  &operand=`Resident` &then=`checked="checked"`]] />
                    					</li>
                    					<span class="error">[[+error.staff-or-resident]]</span>
                    				</ul>
                    			</li>
                    			<li>
                    				<label>Institution:<span class="form-required">*</span> </label>
                    				<input type="text" maxlength="120" name="institution:required" id="institution" size="60" value="[[+institution]]" class="form-text" />
                    				<span class="error">[[+error.institution]]</span>
                    			</li>
                    			<li>
                    				<label>Country:<span class="form-required">*</span> </label>
                    				<input type="text" name="excountry:required" id="country" size="60" value="[[+excountry]]" class="form-text" />
                    				<span class="error">[[+error.excountry]]</span>
                    			</li>
                    			<li>
                    				<label>Province:<span class="form-required">*</span> </label>
                    				<select name="province:required" class="form-select" id="province" >
                    					<option value="" selected="selected"> </option>
                    					<option value="Alberta" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Alberta` &then=`selected="selected"` ]]>Alberta</option>
                    					<option value="British Columbia" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`British Columbia` &then=`selected="selected"` ]]>British Columbia</option>
                    					<option value="Manitoba" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Manitoba` &then=`selected="selected"` ]]>Manitoba</option>
                    					<option value="New Brunswick" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`New Brunswick` &then=`selected="selected"` ]]>New Brunswick</option>
                    					<option value="Newfoundland and Labrador" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Newfoundland and Labrador` &then=`selected="selected"` ]]>Newfoundland and Labrador</option>
                    					<option value="Northwest Territories" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Northwest Territories` &then=`selected="selected"` ]]>Northwest Territories</option>
                    					<option value="Nova Scotia" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Nova Scotia` &then=`selected="selected"` ]]>Nova Scotia</option>
                    					<option value="Nunavut" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Nunavut` &then=`selected="selected"` ]]>Nunavut</option>
                    					<option value="Ontario" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Ontario` &then=`selected="selected"` ]]>Ontario</option>
                    					<option value="Prince Edward Island" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Prince Edward Island` &then=`selected="selected"` ]]>Prince Edward Island</option>
                    					<option value="Quebec" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Quebec` &then=`selected="selected"` ]]>Quebec</option>
                    					<option value="Saskatchewan" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Saskatchewan` &then=`selected="selected"` ]]>Saskatchewan</option>
                    					<option value="Yukon" [[!If? &subject=`[[+province]]` &operator=`EQ`  &operand=`Yukon` &then=`selected="selected"` ]]>Yukon</option>
                    				</select>
                    				<span class="error">[[+error.province]]</span>
                    			</li>
                    			<li>
                    				<label>City:<span class="form-required">*</span> </label>
                    				<input type="text" maxlength="40" name="excity:required" id="city" size="40" value="[[+excity]]" class="form-text" />
                    				<span class="error">[[+error.excity]]</span>
                    			</li>
                    			<li>
                    				<label>Telephone: </label>
                    				<input type="text" maxlength="15" name="telephone" id="telephone" size="15" value="[[+telephone]]" class="form-text" />
                    			</li>
                    			<li>
                    				<label>Extension: </label>
                    				<input type="text" maxlength="5" name="extension" id="extension" size="5" value="[[+extension]]" class="form-text text" />
                    			</li>
                    		</ul>
                    		<ul>
                    			<li>
                    				<h4>Academic Interest</h4>
                    			</li>
                    			<li>
                    				
                    <ul>
                    	<li>
                    		<label>Academic Interests:<span class="form-required">*</span> [[+academic-interests]]</label>
                    		<span class="error">[[+error.aiRequired]]</span>
                    		<input name="validate-ai:aiRequired" type="hidden" value="" />			
                    	</li>
                    	<li>
                    		<label>Education</label>
                    		<input name="ai-education" type="checkbox" id="ai-education" value="Education" [[!If? &subject=`[[+ai-education]]` &operator=`ia`  &operand=`Education` &then=` checked ` ]] />
                    	</li>
                    	
                    	<li>
                    		<label>Educational Research</label>
                    		<input name="ai-educational-research" type="checkbox" id="ai-educational-research" value="Educational Research" [[!If? &subject=`[[+ai-educational-research]]` &operator=`ia`  &operand=`Educational Research` &then=` checked ` ]] />
                    	</li>
                    	
                    	<li>
                    		<label>Basic Science Research</label>
                    		<input name="ai-basic-science-research" type="checkbox" id="ai-basic-science-research" value="Basic Science Research" [[!If? &subject=`[[+ai-basic-science-research]]` &operator=`ia`  &operand=`Basic Science Research` &then=` checked ` ]] />
                    	</li>
                    	
                    	<li>
                    		<label>Phase I/II Clinical Trials</label>
                    		<input name="ai-phase-i-ii-clinical-trials" type="checkbox" id="ai-phase-i-ii-clinical-trials" value="Phase I/II Clinical Trials" [[!If? &subject=`[[+ai-phase-i-ii-clinical-trials]]` &operator=`ia`  &operand=`Phase I/II Clinical Trials` &then=` checked ` ]] />
                    	</li>
                    	
                    	<li>
                    		<label>Phase III Clinical Trials</label>
                    		<input name="ai-phase-iii-clinical-trials" type="checkbox" id="ai-phase-iii-clinical-trials" value="Phase III Clinical Trials" [[!If? &subject=`[[+ai-phase-iii-clinical-trials]]` &operator=`ia`  &operand=`Phase III Clinical Trials` &then=` checked ` ]] />
                    	</li>
                    	
                    	
                    	<li>
                    		<label>Health Services Research</label>
                    		<input name="ai-health-services-research" type="checkbox" id="ai-health-services-research" value="Health Services Research" [[!If? &subject=`[[+ai-health-services-research]]` &operator=`ia`  &operand=`Health Services Research` &then=` checked ` ]] />
                    	</li>
                    	
                    	
                    	<li>
                    		<label>Transitional Research</label>
                    		<input name="ai-transitional-research" type="checkbox" id="ai-transitional-research" value="Transitional Research" [[!If? &subject=`[[+ai-transitional-research]]` &operator=`ia`  &operand=`Transitional Research` &then=` checked ` ]] />
                    	</li>
                    	
                    	
                    	<li>
                    		<label>Not Applicable</label>
                    		<input name="ai-not-applicable" type="checkbox" id="ai-not-applicable" value="Not Applicable" [[!If? &subject=`[[+ai-not-applicable]]` &operator=`ia`  &operand=`Not Applicable` &then=` checked ` ]] />
                    	</li>
                    	
                    </ul>
                    				
                    				
                    				
                    					
                    				
                    			</li>
                    			</li>
                    			<li>
                    				<label>Other: </label>
                    				<input type="text" name="other-academic-interest" id="other-academic-interest" size="60" value="[[+other-academic-interest]]" class="form-text" />
                    			</li>
                    			<li>
                    				<label for="academic-interest-specifics">Specifics: </label>
                    				<textarea cols="60" rows="5" name="academic-interest-specifics" id="academic-interest-specifics"  class="form-textarea">[[+academic-interest-specifics]]</textarea>
                    			</li>
                    		</ul>
                    		<ul>
                    			<li>
                    				<h4>Clinical Interest</h4>
                    			</li>
                    		<li>
                    		<ul>
                    
                    							<li>
                    								<label>Breast</label>
                    								<input name="ci-breast" type="checkbox" id="ci-breast" value="Breast" [[!If? &subject=`[[+ci-breast]]` &operator=`ia`  &operand=`Breast` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Lung</label>
                    								<input name="ci-lung" type="checkbox" id="ci-lung" value="Lung" [[!If? &subject=`[[+ci-lung]]` &operator=`ia`  &operand=`Lung` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>GI</label>
                    								<input name="ci-gi" type="checkbox" id="ci-gi" value="GI" [[!If? &subject=`[[+ci-gi]]` &operator=`ia`  &operand=`GI` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>GU</label>
                    								<input name="ci-gu" type="checkbox" id="ci-gu" value="GU" [[!If? &subject=`[[+ci-gu]]` &operator=`ia`  &operand=`GU` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Head and Neck</label>
                    								<input name="ci-head-and-neck" type="checkbox" id="ci-head-and-neck" value="Head and Neck" [[!If? &subject=`[[+ci-head-and-neck]]` &operator=`ia`  &operand=`Head and Neck` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Gynecology</label>
                    								<input name="ci-gynecology" type="checkbox" id="ci-gynecology" value="Gynecology" [[!If? &subject=`[[+ci-gynecology]]` &operator=`ia`  &operand=`Gynecology` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Sarcoma</label>
                    								<input name="ci-sarcoma" type="checkbox" id="ci-sarcoma" value="Sarcoma" [[!If? &subject=`[[+ci-sarcoma]]` &operator=`ia`  &operand=`Sarcoma` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Melanoma</label>
                    								<input name="ci-melanoma" type="checkbox" id="ci-melanoma" value="Melanoma" [[!If? &subject=`[[+ci-melanoma]]` &operator=`ia`  &operand=`Melanoma` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Supportive Care</label>
                    								<input name="ci-supportive-care" type="checkbox" id="ci-supportive-care" value="Supportive Care" [[!If? &subject=`[[+ci-supportive-care]]` &operator=`ia`  &operand=`Supportive Care` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Lymphoma</label>
                    								<input name="ci-lymphoma" type="checkbox" id="ci-lymphoma" value="Lymphoma" [[!If? &subject=`[[+ci-lymphoma]]` &operator=`ia`  &operand=`Lymphoma` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Myeloma</label>
                    								<input name="ci-myeloma" type="checkbox" id="ci-myeloma" value="Myeloma" [[!If? &subject=`[[+ci-myeloma]]` &operator=`ia`  &operand=`Myeloma` &then=` checked ` ]] />
                    							</li>
                    							<li>
                    								<label>Palliative Care</label>
                    								<input name="ci-palliative-care" type="checkbox" id="ci-palliative-care" value="Palliative Care" [[!If? &subject=`[[+ci-palliative-care]]` &operator=`ia`  &operand=`Palliative Care` &then=` checked ` ]] />
                    							</li>
                    			</ul>
                    			
                    
                    				
                    			</li>
                    			<li>
                    				<label for="clinical-interest-other">Other: </label>
                    				<input type="text" name="clinical-interest-other" id="clinical-interest-other" size="60" value="[[+clinical-interest-other]]" class="form-text" />
                    			</li>
                    			<li>
                    				<label for="clinical-interest-specifics">Specifics: </label>
                    				<textarea cols="60" rows="5" name="clinical-interest-specifics" id="clinical-interest-specifics"  class="form-textarea">[[+clinical-interest-specifics]]</textarea>
                    			</li>
                    		</ul>
                    		<ul class="eula">
                    			<li>
                    				<h4>EULA [required]</h4>
                    			</li>
                    			<li>
                    				<p>Agreement: I have read and I agree to the <a href="[[~217]]" target="_blank">conditions and terms of use</a>.</p>
                    				<ul>
                    				
                    				<li>
                    						<label><span class="error">[[+error.eula-agreement]]</span></label><br>
                    						<select name="eula-agreement:required" class="form-select" id="eula-agreement" >
                    							<option value="" selected="selected"> </option>
                    							<option value="No, I do not agree to the terms and conditions" 
                    							[[!If? &subject=`[[+eula-agreement]]` &operator=`EQ`  &operand=`No, I do not agree to the terms and conditions` &then=`selected="selected"` ]]>
                    							No, I do not agree to the terms and conditions</option>
                    							
                    							<option value="Yes, I agree to the terms and conditions" 
                    							[[!If? &subject=`[[+eula-agreement]]` &operator=`EQ`  &operand=`Yes, I agree to the terms and conditions` &then=`selected="selected"` ]] >
                    							Yes, I agree to the terms and conditions</option>
                    						</select>
                    						
                    				</li>
                    				
                    				
                    				
                    				
                    					<!--li>
                    						<label>No, I do not agree to the terms and conditions</label>
                    						<input type="radio" id="eula-agreement-disagree" name="eula-agreement:required" value="No, I do not agree to the terms and conditions"   class="form-radio"
                    						[[!If? &subject=`[[+eula-agreement]]` &operator=`EQ`  &operand=`No, I do not agree to the terms and conditions` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Yes, I agree to the terms and conditions</label>
                    						<input type="radio" id="eula-agreement-agree" name="eula-agreement:required" value="Yes, I agree to the terms and conditions"   class="form-radio"
                    						[[!If? &subject=`[[+eula-agreement]]` &operator=`EQ`  &operand=`Yes, I agree to the terms and conditions` &then=`checked="checked"`]] />
                    					</li-->
                    					
                    					
                    					
                    				</ul>
                    			</li>
                    		</ul>
                    		<ul class="database">
                    			<li>
                    				<h4>Medical Oncologist Database [required]</h4>
                    			</li>
                    			<li>
                    				<p>I agree to have this information included in the database and I understand that the use of this database is subject to the terms outlined in the privacy policy of the website.</p>
                    				<ul>
                    				<li>
                    						<label><span class="error">[[+error.oncologist-database]]</span></label>
                    						<select name="oncologist-database:required" class="form-select" id="oncologist-database" >
                    							<option value="" selected="selected"> </option>
                    							<option value="No, do not include me in the oncologist database." 
                    							[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`No, do not include me in the oncologist database.` &then=`selected="selected"` ]]>
                    							No, do not include me in the oncologist database.</option>
                    							
                    							<option value="Yes, include me in the oncologist database (for Canadian Medical Oncologists only)." 
                    							[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`Yes, include me in the oncologist database (for Canadian Medical Oncologists only).` &then=`selected="selected"` ]] >
                    							Yes, include me in the oncologist database (for Canadian Medical Oncologists only).</option>
                    						</select>
                    						
                    				</li>
                    					<!--li>
                    						<label>No, do not include me in the oncologist database.</label>
                    						<input type="radio" id="oncologist-database-exclude" name="oncologist-database:required" value="No, do not include me in the oncologist database."   class="form-radio"
                    						[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`No, do not include me in the oncologist database.` &then=`checked="checked"`]] />
                    					</li>
                    					<li>
                    						<label>Yes, include me in the oncologist database (for Canadian Medical Oncologists only).</label>
                    						<input type="radio" id="oncologist-database-include" name="oncologist-database:required" value="Yes, include me in the oncologist database (for Canadian Medical Oncologists only)."   class="form-radio" 
                    						[[!If? &subject=`[[+oncologist-database]]` &operator=`EQ`  &operand=`Yes, include me in the oncologist database (for Canadian Medical Oncologists only).` &then=`checked="checked"`]] />
                    					</li-->
                    				</ul>
                    				
                    			</li>
                    		</ul>
                    		<ul class="mailchimp">
                    			<li>
                    				<h4>Newsletters</h4>
                    			<ul>
                    			<li>
                    				<label>Subscribe to the OncologyEducation.ca Newsletter newsletter</label>
                    			<input type="checkbox" name="mailchimp" id="edit-mailchimp-list-2964ce6445" value="1"  checked="checked"  class="form-checkbox mailchimp-newsletter-checkbox-2964ce6445" />
                    			</li>
                    			</ul>
                    			</li>
                    		</ul>
                    		<ul>
                    			<li class="captcha">[[+recaptcha_html]]<span class="error">[[+error.recaptcha]]</span></li>
                    			<li class="register-button"><input type="submit" name="login-register-btn" value="Register" class="submit-registration" /></li>
                    		</ul>
                    
                    	</form>
                    </div>
                    
                    



                    help!
                      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

                      Sean Kimball CLP, CLS.
                      Technical Director / Sr. Developer | BigBlock Studios
                      ._______________________________________________.
                      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
                      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
                      phone/fax: 905-426-5525
                      • 3749
                      • 24,544 Posts
                      http://rtfm.modx.com/display/ADDON/FormIt#FormIt-AvailableProperties

                      In the current version of FormIt, you don’t put the validators in the form, you put them in the &validate property.

                      &validate=`username:required,email:email:required,nospam:blank,subject:MyValidator` &customValidators=`aiRequired=`salutation`


                      Make sure you have a latest version of FormIt.

                      You’ll also want to read this: http://rtfm.modx.com/display/ADDON/FormIt.Validators#FormIt.Validators-CustomValidators
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting