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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

change Display text of URL Field

(0) ShareShare
ReportReport
Posted on by 185

Hi All,

I want to change the URL Display text with other Field Value

ex: Path field is URL , i want to change the display text to Name field value and link should still point to URL.

05544.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    this is not possible within CRM.

  • Mohammed Irfan Profile Picture
    185 on at

    Can we do following scenario

    When i click entity record Facebook then it should get the URL from path field and redirect with in same window

    4052402.Capture.PNG

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    if you want to customize the field behavior, i don't think there is a supported method. But you can create a custom button, user can select the record and click on the custom button, and open the url .

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    What you can do is in the onload event of your form (in edit mode), retrieve the value of the path field, and redirect.

    The issue with that is that the form will always redirect in edit mode, so you will not be able to make changes to the path (unless you are creating a new record),

    Maybe another alternative is having an IFRAME on the form, and displaying the path inside the IFRAME on the form?

    Hope this helps.

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Irfan ,

    Try with this -

    Xrm.Page.getControl("fieldname").setLabel('URL');

  • Verified answer
    Mohammed Irfan Profile Picture
    185 on at

    Hi Aric ,

    i did some javascript coding and am able to open the url but it is opening both windows(Entity details window and url redirected window).

    reference link : https://community.dynamics.com/crm/b/crmtipsfromadeveloper/archive/2017/06/19/know-how-mscrm-open-external-url-using-xrm-utility-openwebresource-d365

    can we open it in same window??

    and there is no need for IFRAME for me now.

    Goutam,

    the solution you told will replace Label of field but not static text of field

  • Arpita Saini Profile Picture
    Microsoft Employee on at

    Hi Irfan,

    Could you share the step by step how you achieved this ? Im trying to set the long ugly URLs we see in a subgrid or any view grid to simple text or image.

    Thanks,

    Arpita

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans