Skip to main content

Notifications

Announcements

No record found.

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

  • Arpita Saini Profile Picture
    Arpita Saini on at
    RE: change Display text of URL Field

    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

  • Verified answer
    Mohammed Irfan Profile Picture
    Mohammed Irfan 185 on at
    RE: change Display text of URL Field

    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

  • gdas Profile Picture
    gdas 50,085 on at
    RE: change Display text of URL Field

    Hi Irfan ,

    Try with this -

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

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: change Display text of URL Field

    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.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: change Display text of URL Field

    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 .

  • Mohammed Irfan Profile Picture
    Mohammed Irfan 185 on at
    RE: change Display text of URL Field

    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
    Alex Fun Wei Jie 33,626 on at
    RE: change Display text of URL Field

    Hi,

    this is not possible within CRM.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans