I need to check if the Recurrence checkbox is checked by JAvaScript code and if it is checked I require the user to provide an end date. So far the following has not worked:

 var cntrl5 = getTagFromIdentifierAndTitle("INPUT","BooleanField","Recurrence");
  if (cntrl5.Checked ==true)
       alert('the control is found');


Any idea how I can write code to check if the recurrence checkbox has been checked?

1 Answer 1


Here's a way to do it with jQuery.

if($("TABLE.ms-formtable>TBODY>TR:eq(6)").attr('checked')) {
    if (inp.val().length > 0) {
    // do something
} else {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.