URL field not clickable in Read-Only mode?

This question has suggested answer(s)

Hi all,

I have a field type single line text with URL format.

When the form is active, double click on the field will open the link. However, once the form is deactivated, double click on the field has no effect.

Expected behaviour of a URL field should be clickable in whatever form state?

I encounter the issue on CRM online, so is RU12..

All Replies
  • This is the typical behavior in 2011 - not just UR12.

    You can make the field clickable with some JavaScript:

    function OnLoad() {
        //Readonly form
        if (Xrm.Page.ui.getFormType() == 4) {
            //Enable field
            Xrm.Page.ui.controls.get("websiteurl").setDisabled(false);
            //Even though for is read only - this removes the pop up asking you save 
            //when closing the record if the field changed
            Xrm.Page.getAttribute("websiteurl").setSubmitMode("never");
        }
    }
    

    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn