
function showConfirmDialog() {
Xrm.Utility.confirmDialog("Click Yes or No to set the Personal Notes Value",
function() {
Xrm.Page.getAttribute("description").setValue("Yes Callback fired");
},
function() {
Xrm.Page.getAttribute("description").setValue("No Callback fired");
});
}
this is my code, i want users to fill the description manually after clicking on "ok" or "cancel"
i dont want the setValues() to be in description. Hello, It looks like your code is working correctly. So if you want to use a different field than description, you just have to change your code to use a different field.
For example I took your code and made it run for the fax field on the Accounts form.
We need the logical name of the field.
And then we just change the code slightly.
function showConfirmDialog() {
Xrm.Utility.confirmDialog("Click Yes or No to set the Personal Notes Value",
function() {
Xrm.Page.getAttribute("fax").setValue("Yes Callback fired");
},
function() {
Xrm.Page.getAttribute("fax").setValue("No Callback fired");
});
}
Hope this helps.