Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Auto-resize iframe customer form
We're using Netsuite custom forms and embedding them in our site, within iframes, but we notice that sometimes the bottom of the form gets clipped. (This might have to do with browser type, or the user's font size settings.)
Is there a way to embed a Netsuite form as an iframe in such a way that the iframe resizes to contain all of the content, without scrollbars?
We've tried various approaches, so far without success. Here's one:
I saved this script in one of our folders:
[INDENT]<script>
function resizeToContent(){
var x =0;
var y =this.document.body.scrollHeight;
0