Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Subform resize snippet

Locked
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Subform resize snippet

Unread post by zazzium »

Hi,
because form space is scarce in nubuilder, and it's better to have subforms on main tab i like to share a small snippet.
(its not for Browse in Subform)

It adds a button to subform which resizes it vertically inside form window, giving better overview of the content.
(certainly this is not necessary for all the subforms, but in some cases it's very useful)

Image
Image

Add the file subform_resize.js to a specific form or copy the function to common.js.
In Custom Code->javascript call the function with the subforms Field name.

Code: Select all

function nuLoadThis() {
  subform_resize("FMinvoice_item"); //where "FMinvoice_item" is the subform Field Name
}
(tested on nuBuilder v2.8 and v2.7 )

Hope it helps.

zazzium
Attachments
subform_resize.rar
(821 Bytes) Downloaded 550 times
Last edited by zazzium on Fri Aug 09, 2013 12:19 am, edited 1 time in total.
admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

Re: Subform resize snippet

Unread post by admin »

zazzium,

Very Cool!

Steven
Locked