I would like to hide a grid based on a previous question the user will answer.
I have used this code to hide a tab but I would also like to hide one of the review grids.
//Hides Leave-A-Post Tab in Termination Details Wizard//
fd.spRendered(function() {
function enableOrDisableResolvedTab() {
if (fd.field('Is_x0020_the_x0020_employee_x0020').value == 'Yes') {
//disable Leave-A-Post tab
fd.container('Tab0').tabs[1].disabled = true;
} else {
//enable the Leave-A-Post tab
fd.container('Tab0').tabs[1].disabled = false;
}
}
//call enableOrDisableResolvedTab when a user changes the status
fd.field('Is_x0020_the_x0020_employee_x0020').$on('change',enableOrDisableResolvedTab);
//call enableOrDisableResolvedTab on form load
enableOrDisableResolvedTab();
That simple? I've been spending several hours trying to fix this. Thank you so much!
Is jQuery used for writing code? If so, can you direct me to a good source to learn this and implement the language for my forms. I'm not very good at coding.
Dear @Qman,
Yes, jQuery is available on Forms. Usually, you can just google solution for any issue that you might have. For jQuery, you can check out this section here - jQuery Tutorial