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 to add a lateral panel on the right of the screen that overlays the content of forms

(0) ShareShare
ReportReport
Posted on by 170

Hi everyone,

On contact form I would like to add a lateral panel, on the right side of the form that overlays the form but can be hidden using Javascript. 

What I've tried to do is I've added a simple javascript method on the onload event of the form. The goal of the javascript method is to add a div on the right side of the form. As I want it to be displayed on top of everything, I've added a z-index property. The loaded div contains an iFrame that made some work and is printing staff in developer console. The result is that I get the logs printed in the console but the div colored in red that should be containing the iFrame is not displayed on top. It's hidden by the form.

Here is the simple javascript method (I've removed the source of the iFrame for confidential purpose):

function openIFrame() {   
	var iFrameUri = 'https://sourceOfIframe.com';
	var contentPanelDiv = '<div id="contentPanel" style='z-index: 10000;position: absolute;right: 0;top: 0;height: 100%;width: 200;position: fixed;background-color: #DE6161;margin: 0;'><iframe  allowTransparency='true' height='465px;' frameborder='0' scrolling='yes' src=''+ iFrameUri +'' type= 'text/javascript'></iframe></div>';
	document.body.innerHTML += contentPanelDiv;
}

Any idea how that company manages to do it: http://www.ingenius.com/microsoft-dynamics-crm/ 

Any idea how to achieve this ? 

Thanks in advance 
I

*This post is locked for comments

I have the same question (0)

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