web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

URL field not clickable in Read-Only mode?

(0) ShareShare
ReportReport
Posted on by

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..

*This post is locked for comments

I have the same question (0)
  • Verified answer
    jlattimer Profile Picture
    24,562 on at

    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");
        }
    }
    
  • heguangm Profile Picture
    795 on at

    this onload() did not get called in the entity view in Outlook.

    The view I am talking about is this: when you select an entity from the left navigation pane in Outlook, then in the center content pane (reading Pane called in Outlook), you see a list of entities, below this pane you see a view of the entity you just selected. This bottom view seems read-only. However, this did not call the onload javascript at all.

    Why?

    The onload() did get called if I clicked an entity to open the entity in an edit mode.

  • Neil Benson Profile Picture
    7,369 User Group Leader on at

    System URLs such as the Web Site field on the account are clickable hyperlinks on the Outlook preview version of the form. In the Outlook preview, form JavaScript doesn't get executed so custom URL fields might not be clickable hyperlinks; I think this is just a limitation of Outlook.

    Jason suggested custom JavaScript because you initially indicated that your record had been deactivated. The record Status (Active or Inactive) is a different thing to the form being an Outlook preview form, so sorry about any confusion there.

  • wtoh Profile Picture
    on at

    Hi Jason/Neil,

    i missed this post. so is Jason's suggestion supported by Microsoft?

  • heguangm Profile Picture
    795 on at

    I believe Jason's suggestion is supported by MS. That is one the normal customization you can do the CRM forms. I did test that.

  • Suggested answer
    Karth Profile Picture
    on at

    This is by design. Once you have deactivated a record, you cannot perform any operation on the record (including clicking a URL field).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans