Hi
The ticket number is 120032524001680 || check.getSelectedOption is not a function
below is the details from Mahesh
Greetings for the day,
We have verified from our end and could see “XRM.Page” client API have been using in the script, this API have Deprecated in the UCI.
Below is screen shot for your reference.
Please use new replacement API to overcome this issue, below are the URL’s.
Client API Reference for model-driven apps, below is the URL
docs.microsoft.com/.../reference
Some client APIs are deprecated with new replacement Client API, below is the URL
docs.microsoft.com/.../important-changes-coming
This is the current syntax on production and working if this can be corrected it should work on the Unified Interface
function manq()
{
var check= Xrm.Page.getAttribute("kb_mandatoryquestion");
if(check!=null)
{
var check2=check.getSelectedOption().value;
if(check2==1)
{Xrm.Page.getControl("kb_answer").removeOption(108630000); }
}
}
function critques()
{
var check= Xrm.Page.getAttribute("kb_criticalquestion");
if(check!=null)
{
var check2=check.getSelectedOption().value;
if(check2==1)
{
// Xrm.Page.getControl("kb_answer").removeOption(108630000);
Xrm.Page.getControl("kb_answer").removeOption(108630002);
}
}
}
function includescore()
{
var check = Xrm.Page.getAttribute("kb_includeinmaxscore");
if (check=="No")
{
Xrm.Page.getAttribute("kb_includescore").setValue(0) //set value to No
}
}