FreeFormatQ_RadioVar = 1
SelectQ_1 = 1
<script> $(document).ready(function(){ if (SSI_GetValue('SelectQ_1')) { $('#[% QuestionName() %]').prop('disabled', true); } }) function SSI_CustomGraphicalCheckbox(graphical, input, bln) { if (input.name == 'SelectQ_1') { if (bln) { $('#[% QuestionName() %]').prop('disabled', true).val(''); } else { $('#[% QuestionName() %]').prop('disabled', false); } } } </script>
if (!$('#[% QuestionName() %]').val().length && !SSI_GetValue('SelectQ_1')) { strErrorMessage = 'Question must be answered or "No expenditure" must be checked.'; }