Hi Scott,
As Lindsay has suggested, we can use validation mechanism. We can use onvalidate attribute of text field as below (example form has a checkbox, if it is checked then text field cannot be empty)
{
onvalidate: function(_val){
if(ca_fdIsSelectedCheckBox(ca_fd.formId,'chb_1') && _val ==""){
return "This field is required if desk phone is requested";
}
}
}
Text Fields onvalidate: ca_fd.js.onvalidate(_val)
But the catch here is even if the checkbox is unchecked after the text field is marked as required, it still will be marked as required until text field is filled or atleast one character is typed which will trigger our onvalidate script again.
Regards,
Satya Kiran