Hi guys and girls,
I want to make a require column field in a table with java when the radio button "Working" is selected. here my forms
So I want to make the worktype column a requirefield. I tried this script I got the " * " appear but the field is not realy a require field because I can submit the form witout field any data in the worktype field
$(document).ready(function() {
$('#q44').click(function () {
if($('input[value="Working (incl. Standby)"]').is(':checked')) //edit the value here to use your own.
{
$(this).find('.HoursSum1 input').attr('required', 'True');
$('#q116 label').append('<span class="cf-required">*</span>');
$('#q116 input').attr('required', 'True');
}
else {
$('#q116 span.cf-required').remove();
$('#q116 input').removeClass('required').removeAttr('required');
}
});
});