Hello,
I am trying to hide a multi-line text field if a yes/no = false. I have added the below code into JavaScript in the forms designer. What am I doing wrong?
fd.spRendered(function() {
function hideOrShowRegDeal() {
if (fd.field(‘Deal_x0020_Registration_x0020_Re’).value = false) {
{
$(fd.field(‘How_x0020_to_x0020_Register_x002’).$parent.$el).hide();
}
}
fd.field(‘Deal_x0020_Registration_x0020_Re’).$on(‘change’,hideOrShowRegDeal();
hideOrShowRegDeal();
});