Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Grouping edit forms fields

Locked
csnet
Posts: 11
Joined: Wed Sep 29, 2010 8:13 pm

Grouping edit forms fields

Unread post by csnet »

Hi,
I need to make the edit forms more user friendly by grouping fields together.
Is Anyone have an idea on how to achieve nuBuilder edit form fields grouping:
FieldGrouping.PNG
Normally I use the <fieldset></fieldset> tag to achieve this. And I gave it a try on an edit form, by inserting two html objects around the fields, but I had no access.
Any idea on how to accomplish this will be welcome.
You do not have the required permissions to view the files attached to this post.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Grouping edit forms fields

Unread post by massiws »

csnet, you could use an html object before your first field with some code like this:

Code: Select all

<fieldset style="height:250px; left:15px; top:10px; width:390px; position:absolute;"><legend>My fieldset</legend></fieldset>
or, better, put few lines of jQuery in nuLoadEdit() function:

Code: Select all

function nuLoadEdit() {
  $("#myfirstfield").before('<fieldset id="myfieldset">');
  $('#myfieldset')
    .append('<legend>My group legend</legend>')
    .css({
      'height'  :'250px',
      'left'    :'15px',
      'top'     :'10px',
      'width'   :'390px'
      'position':'absolute'
    });
  });
}
Hope this helps,
Max
csnet
Posts: 11
Joined: Wed Sep 29, 2010 8:13 pm

Re: Grouping edit forms fields

Unread post by csnet »

Hi massiws,
thank you. I used the html object approach and it works fine.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Grouping edit forms fields

Unread post by massiws »

.
Locked