Hi Jason,
Need more help. I have spent hours on this and I am glad I still have my sense of humor.
I don't know how many times I have made this contact page.
I figured out how to make the individual elements for my contact page. I am having problems with the radio groups.
I would like to ask the customer the Best time to reach them. When you create the element, it allows you to pick the radio group and I selected wide. I have selected validation, but what must I select for the empty value and invalid value? When I try to process the form and send it to my email, it can never validate.
What I'm I doing wrong?
Mike
Below is the radio button group
<div class="fullColumnGroup">
<label for="fieldset_group_Best_time_to_reach_you" class="sublabel" >Best time to reach you?:<span class="requiredIndicator"> *</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="fieldset_group_Best_time_to_reach_you_Spry"> <span class="radioFieldGroup_Wide" onblur="hideServerError('fieldset_group_Best_time_to_reach_you_ServerError');"> <span class="radioGroup_Wide"> </span> </span> <span class="radioRequiredMsg">Please select time.</span>
<input type="radio" name="radio" id="timeMorning" value="timeMorning" />
<label for="timeMorning">Morning</label>
<input type="radio" name="radio" id="timeAfternoon" value="timeAfternoon" />
<label for="timeAfternoon">Afternoon
<input type="radio" name="radio" id="timeEvening" value="timeEvening" />
Evening</label>
</span>
<?php
if (ValidatedField('contact','contact')) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "4" . ",") !== false || "4" == "")) {
if (!((strpos((",".ValidatedField("contact","contact").","), "," . "4" . ",") !== false || "4" == ""))) {
?>
<span class="serverInvalidState" id="fieldset_group_Best_time_to_reach_you_ServerError">Please select time.</span>
<?php //WAFV_Conditional contact.php contact(4:4)
}
}
}
?>
</div>
</div>
</div>
</div>