Page 1 of 1

Related items - populate

Posted: 12 Aug 2021
by keusch
Hello,

we've got two sarepoint lists and in the NEW form of the parent field we put a related item element in quick edit only mode. By creating a new parent depending on user entries a couple of new child entries in the related items list shall be added.

I tried :

Code: Select all

fd.populateFieldsInGrid($('.order-items'), {
  Parent: '{CurrentItem}',
  Mat_Nr: '9876543210',
  pieces: '21',
});
but that code works only if manually a first entry in the related item list is added then it's overwritten with above values.
Is it possible to add new entries without user interaction in the list?
How could more than one new child item be added?
best regards
Christian

Re: Related items - populate

Posted: 16 Aug 2021
by mnikitina
Hello Christian,

What SharePoint version are you using?

Are you getting any errors in the browser console (F12) on form load? Could you please share the screenshot.