I am in need of some help........tried several different ways to hide/show a section on an entity form that is displayed in our D365 portal.
Here is the code:
$(document).ready(function () {
SetSectionVisibility();
$("#new_request").change(SetSectionVisibiity);
});
function SetSectionVisibility() {
var currentval = $("new_request").is(":checked");
if (currentval == true) {
$(".section[data-name='incident_info']").closest("fieldset").show();
}
else if (currentval == false) {
$(".section[data-name='incident_info']").closest("fieldset").hide();
}
}
Right now the section is hidden so it is partially working. However when I check the box (#new_request) the section does not appear.
Any help would be greatly appreciated!