Dropped Documents set managed metadata field
- Jens.Hetze
- Posts: 22
- Joined: Sat May 20, 2017
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
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
- Jens.Hetze
- Posts: 22
- Joined: Sat May 20, 2017
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
});
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
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests