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)

How do you populate an iFrame on a Contact form with a PlugIn?

(0) ShareShare
ReportReport
Posted on by

I can populate the description field through the Entity (entity.Attributes("description") = CustomerData)  but how would I do the same thing with an iframe placed on the Contact Form?

 

thnk you!

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi,

     I'm not sure what you are trying to do.

    In your example, description seems to be an entity attribute - it's available in the pugins.

     IFrame is a completely client-side feature.. Plugins are not aware of the iframes.

  • ram r Profile Picture
    on at

    Hi,

    1. If its a custom html page you can access it using

    Xrm.Page.ui.controls.get('IFRAME').getObject().contentWindow

    2. If its a quick view form of another entity, then you may need a webapi request to update the same and should refresh the form.

    As Alex suggested, you cannot update an Iframe using a plugin. A plugin can be attached only to a message based trigger and can perform server side operations.

  • VermaNitin Profile Picture
    455 on at

    Hi,

    Iframe on a form is a client side component which can't be populated from plugin whereas the attribute is a component of an entity so you can set it's value.

    So you can't do it through plugin directly.

    If you wish to achieve it then you might use javascript and plugin  in conjuction.

    Let me know if you need the steps.

    Happy Programming!

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