Welcome to the nuBuilder Forums!

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

display field in header of edit form

Locked
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

display field in header of edit form

Unread post by johan »

Hi ,
Is it possible to display a field (p.ex name of customer) in header of edit form?

When I create a form with several tabs I now display the name on te differrent tabs. It would be easier is I could display a field on the head of the form (near save button)

Johan
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: display field in header of edit form

Unread post by admin »

Johan,

Put something like this in the Form's JavaScript section.

Code: Select all

function nuLoadThis(){

	var nuInput              = document.createElement('input');

	nuInput.setAttribute('id', 'formTitle');

	nuInput.style.position   = 'absolute';
	nuInput.style.top        = '0px';
	nuInput.style.left       = '0px';
	nuInput.style.width      = '100px';
	nuInput.style.height     = '20px';
	nuInput.style.textAlign  = 'left';
	nuInput.value            = 'Joe Bloggs';

	document.body.appendChild(nuInput);


}

Steven
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: display field in header of edit form

Unread post by johan »

Steven,

Works perfect, just what I'm looking for. Maybe an idea to integrate it in the next update?

Thanks again
Johan
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: display field in header of edit form

Unread post by admin »

.
Locked