Populating more than one field in a related list
Hi Folks, newbie question so apologies in advance.
I have 2 lists Client and a Voucher, I have followed the example Related Items.
I seem to have it working but seem to have 2 issues
1 the clientid field does not populate when I make it read only it on the New Item form.
2 I would like to populate some field values on the ne item form as well as the clientID, Client name for example.
Any help would be great thanks
Martin
I have 2 lists Client and a Voucher, I have followed the example Related Items.
I seem to have it working but seem to have 2 issues
1 the clientid field does not populate when I make it read only it on the New Item form.
2 I would like to populate some field values on the ne item form as well as the clientID, Client name for example.
Any help would be great thanks
Martin
Hello mc88,
1. The field must be editable to be populated with the value. You can hide the field on the form with CSS. For this, add a CSS class to the field, eg "parent-field" and add this CSS to CSS editor:
2. Yes, you can populate field on the child form with field values from the parent form using window.top. For instance:
1. The field must be editable to be populated with the value. You can hide the field on the form with CSS. For this, add a CSS class to the field, eg "parent-field" and add this CSS to CSS editor:
Code: Select all
$('.parent-field').hide();
Code: Select all
fd.field('TitleChild').value(window.top.fd.field('TitleParent').value());
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests