JavaScript SPForm load prompts an error
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
- Attachments
-
- spRendered error
- spRendered.PNG (4.27 KiB) Viewed 2018 times
-
- rendered error
- rendered.PNG (3.37 KiB) Viewed 2018 times
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Ching,
These events are from our Forms product, they are not supported in Forms Designer (and not necessary, due to differences in architecture). For information about Forms Designer's code, check out these pages:
1) JS Manages for FD - https://spform.com/documentation/js/manager
2) JS Field methods for FD - https://spform.com/documentation/js/field
3) Getting and setting various FD fields with JS - https://spform.com/javascript-framework ... eld-values
These events are from our Forms product, they are not supported in Forms Designer (and not necessary, due to differences in architecture). For information about Forms Designer's code, check out these pages:
1) JS Manages for FD - https://spform.com/documentation/js/manager
2) JS Field methods for FD - https://spform.com/documentation/js/field
3) Getting and setting various FD fields with JS - https://spform.com/javascript-framework ... eld-values
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 15 guests