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)

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

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

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

  • Jay83 Profile Picture
    275 on at

    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

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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

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