I have this error when I want to add a record to the form of my dynamics 365 and this is what I have in the script
function VisibleRiskLevelField(executionContext) {
var formContext = executionContext.getFormContext();
if (formContext.getAttribute("axn_shephaseii").getValue() != null ) {
formContext.getControl("axn_risklevel").setVisible(false);
formContext.getAttribute("axn_risklevel").setRequiredLevel("none");
}else {
DisabledField();
}
}
yes, the issue was in another funtion in my script on the same entity, thanks for the help!
Hi,
Code looks good.
just wanted know, is there any other javascript function called on same entity?
Thanks.
hi pradeed thank you for the response but already did it and does not work
HI Joss,
Please check below highlighted in form properties.
For e.g. if VisibleRiskLevelField this function called on save of any entity then in On Save event of form the above highlighted checkbox should be checked.
Thanks,
Pradeep Rai.
Please mark this as VERIFIED if it helps
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156