Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

Problem with CRM Form Button In Chrome Browser

$
0
0

Hi,

I'm using JavaScript function to show a button on CRM 2011 form which will call the method and do required operations on CRM (Creating related entity records and refresh sub-grid). This is working fine in IE versions. But it is causing issue with Chrome browser. Here when the button is clicked, all the operation were getting done and at the end it is asking for page navigation which is leading to Error Page. I'm using CRM rollup13.

Below is the screen shot that shows the confirmation message and error page.

Confirmation message


By clicking on Leave this Page, the error page is displayed as below.

Error page navigated to

I thought the problem is with the code which refreshes the subgrid and commented the code. Then also the same issue occurred.

Below is the method I'm calling to convert the field to Button and perform the operations.

// CRM 2011 Style Button     
// Creates a button from a form field
function ConvertToButton(fldName, btnLabel, btnWidth, functionName) {
    //debugger
    var btn = '<button id="btn_' + fldName + '" ' +
                     ' style="width:' + btnWidth + '" ' +
                       ' class="ms-crm-Button" ' +
                     ' onmouseover="Mscrm.ButtonUtils.hoverOn(this);" ' +
                    ' onmouseout="Mscrm.ButtonUtils.hoverOff(this);" ' +
                    'onclick=\"' + functionName + '"; \'' +
                   '>' + btnLabel + '</button>';
    //Convert the field to button                   
    document.getElementById(fldName + "_d").innerHTML = btn;
}

Can anyone help me in resolving this issue please.

Regards,

Syai Reddy D

Osmosys


Regards, Syai, Osmosys



Viewing all articles
Browse latest Browse all 9244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>