Forum

HomeHomeCoreCoreGeneralGeneralMoving from ListX - Validation CheckBox doesnMoving from ListX - Validation CheckBox doesn't work anymore
Previous
 
Next
New Post
11/12/2009 12:19 AM
 
Hi,
moving some module with the validation of checkboxes done in the following way, it doesn't work anymore (dnn 4.9 - ows 2.17)

In the Module Header I've added

!-- MODULE HEADER START -->
script type="text/javascript">
!--
function ValidateAccepted(val, args) {
var chkctl = document.getElementById('textTerms');
if (chkctl.checked==true)
{
args.IsValid=true;
}
else
{
args.IsValid=false;
}
}

//-->
/script>
!-- MODULE HEADER END -->

Then in the Module Template Detail

input type=checkbox id="textTerms" name="textTerms" value="1">Please, confirm Terms & Conditions
div>
span id="vtextTerms"
controltovalidate="textTerms"
errormessage="Please, Check it"
display="Dynamic"
evaluationfunction="CustomValidatorEvaluateIsValid"
clientvalidationfunction="ValidateAccepted"
initialvalue="false"
style="color:Red;display:none;">Please, Check it/span>
/div>

a onclick="if (typeof(Page_SmartValidate) == 'function') {return Page_SmartValidate();}" language="javascript" {ACTION,save,save,,Message}>Save/a>

thanks
Enzo
Previous
 
Next
HomeHomeCoreCoreGeneralGeneralMoving from ListX - Validation CheckBox doesnMoving from ListX - Validation CheckBox doesn't work anymore


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share