Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Open an url address through a button inside the form of an entity

Posted on by 195

Hello everyone,

I have a question.

How can I open an url address through a button inside the form of an entity?

Thank you very much

*This post is locked for comments

  • Zucko_mac Profile Picture
    Zucko_mac 195 on at
    RE: Open an url address through a button inside the form of an entity

    thank you very much worked very well.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Open an url address through a button inside the form of an entity

    Hi ,

    Do you want to open the url inside the form or in new window ?

    For new window you can open the window using window.open as suggested by Andrew and Arpit.

    In addition if you want to open an external URL inside the form the you can create an html web resource  with an iframe and on button click event you can set the iframe src like below.

    document.getElementById("MyFrame").src="https://bing.com";

    You can also add directly the external URL and show hide the content of the Iframe .

    please refer below

    www.inogic.com/.../different-areas-in-dynamics-crm-where-users-can-access-external-pages

  • Verified answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Open an url address through a button inside the form of an entity

    Yes you can use window.open('http://arpitmscrmhunt.blogspot.com');

    window.open has following features also. Can take advantage based on your requirement:

    window.open("", "", "width=200,height=100");

    window.open("http://arpitmscrmhunt.blogspot.com", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400");

    //Open a new window called "MsgWindow", and write some text into it:

    var myWindow = window.open("", "MsgWindow", "width=200,height=100");

    myWindow.document.write("<p>This is 'MsgWindow'. I am 200px wide and 100px tall!</p>");

    function openWin() {

       myWindow = window.open("", "myWindow", "width=200,height=100");   // Opens a new window

    }

    function closeWin() {

       myWindow.close();   // Closes the new window

    }

    Hope it helps.

     

    If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.

    Cheers

    Arpit

    https://arpitmscrmhunt.blogspot.in

     

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Open an url address through a button inside the form of an entity

    Hello,

    Just add following code - window.open("https://google.com&quot;); to your button click handler.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans