Page 1 of 1

display field in header of edit form

Posted: Sun Apr 29, 2012 6:31 am
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

Re: display field in header of edit form

Posted: Mon Apr 30, 2012 4:53 am
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

Re: display field in header of edit form

Posted: Mon Apr 30, 2012 7:54 am
by johan
Steven,

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

Thanks again
Johan

Re: display field in header of edit form

Posted: Tue May 01, 2012 1:34 am
by admin
.