Make this the script for your checkbox:
getField("myTextField").required = event.target.value === "Yes" ? true : false;
Change "myTextField" to the name of the text field in your form.
Make this the script for your checkbox:
getField("myTextField").required = event.target.value === "Yes" ? true : false;
Change "myTextField" to the name of the text field in your form.