Dropped Documents set managed metadata field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Jens.Hetze
Posts: 22
Joined: Sat May 20, 2017

06 Jun 2019

Hi,

how is it possible to set a managed metadata field with updateDroppedDocuments function (https://spform.com/documentation/js/man ... dDocuments)?

In my environment it is a list with related documents and updateDroppedDocuments. Set the parent ID from list in documents works fine. Now I try to set a managed metadata field from parent list to child document. I used the same website column in both, list and library.

Thanks in advance.
Jens

User avatar
Jens.Hetze
Posts: 22
Joined: Sat May 20, 2017

06 Jun 2019

I tried something and it seems to work fine.
The tricky thing is to get the value of managed metadata field in format "display value|managed metadata id"

In following example, column name is "test".

var Test = fd.field('Test').control()._el().find('[name*="Test"]');
Test = Test[0];
Test = Test.value;
console.log(Test);

fd.updateDroppedDocuments($('.related_documents'), {
Parent: GetUrlKeyValue('ID'),
Test: Test
});

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests