Hello.
In html web resource, in Sourse tab, there is function call <button class="button" onclick="function()"/button>
In this function(), I need to show messagedialog, with yes, no but with conditions based on fields of entity.
For example if window.parent.Xrm.Page.getAttribute("date_field").getValue() >= new Date() then show messagedialog;
If client click OK button, I must call another function, if client click cancel, nothing to do, just return.
I tried to do by confirmDialog, but it doesn't work correctly.
How can I resolve it ?
Thanks.
----
Resolved.
*This post is locked for comments