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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Save and Close doesnt close the record when custom iframe is loaded

(0) ShareShare
ReportReport
Posted on by 80

I've created an extension which add a new section and loads an iframe into it. The iframe has another inner iframe to it. The outer iframe control what gets loaded into the inner iframe. When out iframe change the inner iframe source and then if I try to do Save and Close, it reset the inner iframe and doesn't close the form. If i click Save and Close again then it will work. 

Here is the video showing the issue. 

Reproduction Video

Here is the code of my iframe page. time.html and time1.html are normal html page. 

code1.jpg

Looking forward for some pointers. 

Thanks in advance. 

Regards,

Himal

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Himal,

    You are changing the inner frame src with javascript, so the DOM element just changed dynamically.

    In the video, we can find that Assistant and Contacts refreshed after you clicked the "Save & Close" button(0:42), it indicates that the form got refreshed too, hence the outer iframe was reset to the initial state.(no function is executed.)

    So I don't think it would an issue, but it will be helpful if you could share your real requirements.

    Regards,

    Clofly

  • HimalPatel Profile Picture
    80 on at

    Hi Clofly,

    We're showing records associated to a selected drop down value in the inner iframe. The drop down is in the top iframe. and time the value changes for the top drop down, it would set the inner iframe source accordingly so that it can show the records associated with that selected value.

    So regarding the state of the iframe, 2 things are changed. 1 is the drop down selection and second is the iframe source.

    This save and close issue is only affecting the inner iframe. it doesn't reset the drop down.

    Below is the screenshot for your reference.

    crm.jpg

    Thanks,

    Himal

  • cloflyMao Profile Picture
    25,210 on at

    Hi Himal,

    I am not familiar with mechanism of the "Save and close" button, so unfortunately the only suggestion I could come up with is to render the table(inner iframe)  directly in top/outer frame without using iframe.

    Regards,

    Clofly

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans