Cross site dropdown giving wrong value on related item
Posted: 04 Oct 2018
I have a Crosssitelookup field(s) on a form which brings in an employee on the form.
I then have a related item field that is linked to a document library.
In the Javascript I have a bit of code (that works elsewhere)
fd.updateDroppedDocuments($('.SCForm'), function(listItem) {
//get the values from the Form fields:
var employee = fd.field("Employee_x0020_Name").value();
//set the values on uploaded document:
listItem.set_item('Employee_x0020_Name', employee);
listItem.update();
});
This should update a field Employee_x0020_Name from the form to the Employee_x0020_Name on the child library. However instead of doing this it gives a number?
What am I doing wrong?
I then have a related item field that is linked to a document library.
In the Javascript I have a bit of code (that works elsewhere)
fd.updateDroppedDocuments($('.SCForm'), function(listItem) {
//get the values from the Form fields:
var employee = fd.field("Employee_x0020_Name").value();
//set the values on uploaded document:
listItem.set_item('Employee_x0020_Name', employee);
listItem.update();
});
This should update a field Employee_x0020_Name from the form to the Employee_x0020_Name on the child library. However instead of doing this it gives a number?
What am I doing wrong?