Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

link targets in CRM/PORTAL inside iframe

(0) ShareShare
ReportReport
Posted on by 275

When PORTAL is embedded within an iframe on an external site (external site here in pink) certain links (red) seem hardcoded to open at the top level of the browser (i.e the link target is “_top”) rather than within the iframe. In other words doing anything with a case takes the user away from the enclosing site and takes him or her to an address at microsoftcrmportals.com, which we don’t want.

 

I have tried a Javascript rewrite to force all links to behave as we want but the links within the view still open at the top level. I’m stumped.

 

TL;DR version: when PORTAL is inside an iframe it keeps wanting to take the user to microsoftcrmportals.com. Javascript doesn’t seem to fix it.

 4721.portal.jpg

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: link targets in CRM/PORTAL inside iframe

    Hi,

    Refer the below blog on writing scripts on entity list. You need to follow the similar concept and the change the link for all the rows.

    nishantrana.me/.../using-custom-javascript-field-on-entity-list-to-add-javascript-in-portal-in-dynamics-365

    Hope

  • Jay83 Profile Picture
    Jay83 275 on at
    RE: link targets in CRM/PORTAL inside iframe

    Hi Ravi,

    Our Marketing person has done it on the page template not on the grid in the portal per se. How do we do this? What area should we be looking at?

    J

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: link targets in CRM/PORTAL inside iframe

    Hi,

    Have you tried writing a JS to manipulate the links within the subgrid?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans