JavaScript SPForm load prompts an error
Posted: 25 May 2018
Hi,
I am encountering an error when trying to check if form already loads. I've tried using this code
This is my simple JavaScript code.
Ching
I am encountering an error when trying to check if form already loads. I've tried using this code
andfd.rendered(function() {}
but both shows an error. Please see attached images.fd.spRendered(function() {}
This is my simple JavaScript code.
Thank you,fd.spRendered(function() {
if(fd.field('AssignBy').value() == 'Individual'){
$('.individualHide').hide();
$('.departmentHide').show();
}
else if(fd.field('AssignBy').value() == 'Department'){
$('.departmentHide').hide();
$('.individualHide').show();
}
else if(fd.field('AssignBy').value() == 'Position Hierarchy'){
$('.departmentHide').hide();
$('.individualHide').hide();
}
}
);
Ching