Hi,
How can I have a default value only in the subform 1st row?
Thank you.
Best Regards,
Rui
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Default value in subform 1st row
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: Default value in subform 1st row
Rui,
Put this in the JavaScript part of the Form..
Steven
Put this in the JavaScript part of the Form..
Code: Select all
function nuLoadThis(){
var subFormName = '';
document.getElementById(subFormName'+'0000'+'fieldname1').value = 'hello';
document.getElementById(subFormName'+'0000'+'fieldname2').value = 'world';
}
Steven
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
Re: Default value in subform 1st row
Hi Steven,
If the 1st field of the subform is a lookup and I wan't to use the "code", I tried:
But it doesn't work.
Thank you forl your help!
Best Regards,
Rui
If the 1st field of the subform is a lookup and I wan't to use the "code", I tried:
Code: Select all
document.getElementById('codeFMinvoice_item0001tri_product_id').value = '14325';
Thank you forl your help!
Best Regards,
Rui
BR
Rui
Rui
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: Default value in subform 1st row
Rui,
The easiest way is to manually fill out ALL three fields used by the lookup.
eg.
FMinvoice_item0001tri_product_id
codeFMinvoice_item0001tri_product_id
descriptionFMinvoice_item0001tri_product_id
The most important being FMinvoice_item0001tri_product_id
Steven
The easiest way is to manually fill out ALL three fields used by the lookup.
eg.
FMinvoice_item0001tri_product_id
codeFMinvoice_item0001tri_product_id
descriptionFMinvoice_item0001tri_product_id
The most important being FMinvoice_item0001tri_product_id
Steven