Hi ,
I've created a HTML web resource and added to Contact form . I want to show error message like the default mandatory field error message in MSCRM. Is there any best way to achieve this?
Thanks,
Mani.
*This post is locked for comments
That code would not work for webresoruce control. Alternatively you can use form notifications - msdn.microsoft.com/.../gg327828.aspx
I tried with this below code but no luck.
this method working for custom fields but not working for HTML Webresource
parent.Xrm.Page.getControl("WebResource_<name>").setNotification("This is a notification about the Fax field");
Hi,
maybe you can adapt your html to work with SparkelXRM (www.sparklexrm.com/.../default.html). It has the samelook and feel as CRM UI
If it's Html webresource you will have to design own alert mechanisms instead of using standard. Good luck.
Thanks for your reply Pankaj Pandey,
But i've created "Html web resource" instead of custom field.
You can add the attribute name in the below "" and it will show the default mandatory field error message.
Xrm.Page.getAttribute("Attribute").setRequiredLevel("required");
Please mark it as "Verified", if it's the answer you are looking for.
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