Populating more than one field in a related list

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mc88
Posts: 2
Joined: Mon Jun 15, 2020

15 Jun 2020

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

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

16 Jun 2020

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:

Code: Select all

$('.parent-field').hide();
2. Yes, you can populate field on the child form with field values from the parent form using window.top. For instance:

Code: Select all

fd.field('TitleChild').value(window.top.fd.field('TitleParent').value());

mc88
Posts: 2
Joined: Mon Jun 15, 2020

17 Jun 2020

Perfect Thank you

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests