web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

embedding a contact form in an iframe

(0) ShareShare
ReportReport
Posted on by 320

I'm trying to show a contact form inside an iframe and I'm not having any luck.  

It looks like there might some kind of support for this using navbar=off & cmdbar=false.

I can construct an URL that with these parameters and it works when pasted into the browser's address bar, but when I try to put it into iframe, I just get blank page (even thou CRM prompts me for password)

Has anybody been able to get this to work?  If so can you provide sample of you did it?  

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Royal King Profile Picture
    27,686 on at
    RE: embedding a contact form in an iframe

    Try with Web resource it should be showing properly.

    I had web resource with following html and it was showing record content without any issues

    <html><head><meta><meta><meta><meta><meta charset="utf-8"></head>

    <body style='-ms-word-wrap: break-word;'>

    <div>

    <iframe width="100%" height="100%" src="/main.aspx?etn=invoice&pagetype=entityrecord&id=%7B6F96577B-049C-E411-80D6-FC15B4285CEC%7D&navbar=off&cmdbar=false">

    </iframe>

    </div>

    </body>

    </html>

  • Eric benco Profile Picture
    320 on at
    RE: embedding a contact form in an iframe

    Thanks Chitrarasan!!!!

    I got it to work when I placed it in a web resource and put the web resource on the site map.

    It wont work if the iframe is hosted locally or if web resource is accessed directly (eg http ://myserver/MYCRM/WebResources/new_mywebpage.html )

  • Royal King Profile Picture
    27,686 on at
    RE: embedding a contact form in an iframe

    If you add onload script on the web resource file to set the src of the Iframe  opening web resource with right parameters should show record without any issue. I was able see record showing properly in web resource when i opened web resource url  directly by passing querystring entityname and recordid.

  • Eric benco Profile Picture
    320 on at
    RE: embedding a contact form in an iframe

    I tried loading the iframe from javascript and it still didn't work.  It must something with my environment or version (CRM 2013 SP1 UR1).  At least now I know it should work and how to get it to work.

    Thanks again for the help!!!

  • Community Member Profile Picture
    on at
    RE: embedding a contact form in an iframe

    Hello Eric,

    Did it worked for you, I am trying to do similar thing, trying to load my crm lead form in custom web page and getting following error:

    community.dynamics.com/.../634844

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at
    RE: embedding a contact form in an iframe

    You can't access CRM URL  from CRM ifame.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans