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)

Adding iFrame to Contact to display Webpage

(0) ShareShare
ReportReport
Posted on by 2,620

I’d like to insert an IFRAME on the Contact form to display a web page which should have the value of a Contact field at the end – i.e. URL…someid=[local field]. I tried to use a question mark after the “=” and add the field into the Dependencies list but that didn’t work. Would I have to go by create a web resource (Jscript) to achieve that?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vijay Waghmare Profile Picture
    on at

    You can use HTML web resource, add web resource on contact form and by using

    Window.parent.Xrm.Page.getAttribute('attrname').getValue() you  can get attribute values of contact form on your custom web page.

    Thanks,

    Vijay Waghmare

  • Suggested answer
    Ben John Profile Picture
    559 on at

    Hi VGOW,

    here is an JScript example from MSDN how to dynamically change an iframe URL.

    Regards,
    Ben

  • vgow Profile Picture
    2,620 on at

    Thanks for Vijay, apologies for my ignorance but where do use Window.parent.Xrm.Page.getAttribute('attrname').getValue() ? Do I add it to the Web Resources Properties box? I'm new to CRM and not technical, would I need to pass this to a developer to create a custom Jscript?

  • Verified answer
    Vijay Waghmare Profile Picture
    on at

    Window.parent.Xrm.Page.getAttribute('attrname').getValue() code need to be added to your HTML web resource, using window.onload event you can read required attributes values available on entity form when web resource load.

    Place the HTML web resouce on entity form and have window.onload event to read values.

    Thanks,

    Vijay Waghmare

  • ashish12 Profile Picture
    3,079 on at

    example from MSDN

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