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)

Dynamically Load Iframe page in form based on field values in form

(0) ShareShare
ReportReport
Posted on by

hi ,

i have one IFrame in form level . i am setting the URL to Iframe on form load by passing query string parameters to URL based on two field values in form . one is single line text and other is optionset.

i have requirement to reset the Iframe URL when there is any change in Option set field .i have written javascript in onchange of Optionset field to reset Iframe URL. in onchange of optionset i am forming the URL and setting to Iframe using "iframename.setSrc(URL)" . i can see the new URL if i right click on properties . but the page is not reloading (based on query string parameter results will get narrow down)

Do anyone have script for refreshing or reloading iframe .. is it possible?

Regards,

Naveen M

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi Naveen,

    Refer this link:

    stackoverflow.com/.../how-to-set-an-iframe-src-attribute-set-in-crm-2013-using-javascript

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • Rajkumar Rajaraman Profile Picture
    on at

    Hi Naveen, Try this:

    document.getElementById("[Your Iframe ID]").src = Xrm.Page.getControl("[Your Iframe ID]").getSrc();

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