You are viewing limited content. For full access, please sign in.

Question

Question

Iframe Height

asked on April 14, 2014

 Whenever use the Laserfiche Forms embed code provided on the Publish page of a Form the Iframe ends up 150px in height with scrollbars.  How do I get the Iframe to be the height of the form?

0 0

Answer

APPROVED ANSWER
replied on April 17, 2014

I found an answer.  I hope it helps someone else.

//Must set BPID, WebPageElementID, and LFFormsServer
var BusinessProcessID = '3'; //BPID
var WebPageElementID = 'div1'; //The name of the element on the page that you want to embed the iframe within
var LFFormsServer = 'https://server.domain.com';

var IFrameID = 'object' + BusinessProcessID //The iframe ID is 'object' and the BPID

var lf = new LaserficheForms.Form(document.getElementById('ctl00_divCenter'),
	{
		bpid: BusinessProcessID
		,host: LFFormsServer + '/Forms'
	});

$(document).ready(function(){
	document.getElementById(IFrameID).style.height = '100%'; //after the page is loaded find the iframe and set the height
});
0 0
replied on October 22, 2014

Is this in place of the embed code for a process?

2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.