tag:blogger.com,1999:blog-4535447606986422873.post8016744658383591630..comments2024-03-28T17:28:40.654-07:00Comments on MSCRM Shop: How to display a warning message on the CRM formAnonymoushttp://www.blogger.com/profile/04193418105246403607noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4535447606986422873.post-37967830805745029562014-03-16T18:14:45.527-07:002014-03-16T18:14:45.527-07:00Try to debug the code and run it line by line.Try to debug the code and run it line by line.Anonymoushttps://www.blogger.com/profile/04193418105246403607noreply@blogger.comtag:blogger.com,1999:blog-4535447606986422873.post-9327827083711831082014-03-11T04:27:27.583-07:002014-03-11T04:27:27.583-07:00I tried this but it didn't work:
function Sho...I tried this but it didn't work:<br /><br />function ShowNotification() <br />{ <br /> //debugger;<br /> var Validated= false;<br /><br />var attributeValue = Xrm.Page.getAttribute('new_ActiveIssue').getValue();<br />if (attributeValue == true){<br />Validated = true;<br />}<br />else{<br />Validated = false;<br />}<br /><br /> if (Validated==false)<br /> { <br /> //replace the name of the tab and the section as required<br /> Xrm.Page.ui.tabs.get("general").sections.get("sect_alert_notification").setVisible(true);<br /> <br /> }<br /> else<br /> {<br /> //replace the name of the tab and the section as required<br /> Xrm.Page.ui.tabs.get("general").sections.get("sect_alert_notification").setVisible(false);<br /> }<br />}<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4535447606986422873.post-48727120981547820012014-03-11T04:22:18.953-07:002014-03-11T04:22:18.953-07:00This is great thanks. I need my validation code to...This is great thanks. I need my validation code to be based on a boolean field on the form. Could anyone help me with this please?<br /><br />Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4535447606986422873.post-67724972588878608212013-09-30T03:24:25.730-07:002013-09-30T03:24:25.730-07:00Great works a treat
Thanks ^_^Great works a treat<br /><br />Thanks ^_^Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4535447606986422873.post-24512492514288535422013-09-27T11:11:40.098-07:002013-09-27T11:11:40.098-07:00var textValue = Xrm.Page.getAttribute("attrib...var textValue = Xrm.Page.getAttribute("attributeNameOfCustomField").getValue();<br /><br />if(textValue == "noWarningTextValue"){<br /> Validated = true;<br />}<br />else{<br /> Validated= false;<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4535447606986422873.post-15523439343310053222013-07-25T05:33:48.939-07:002013-07-25T05:33:48.939-07:00Hi,
This is just what I am looking for. I have go...Hi,<br /><br />This is just what I am looking for. I have got everthing working to the point where I need to enter the validation code but being a complete noob to Java I'm struggling. I have a custom field on the form that will contain one of three text values and I need the warning to be displayed when it matches two of them but not for the third. Can anyone point me in the right direction please?<br /><br />Thanks,<br />EricAnonymousnoreply@blogger.com