“查找 SharePoint 列”字段中的值显示不正确

Incorrect display of values from the Look up SharePoint column field

本文关键字:显示 不正确 字段 查找 SharePoint      更新时间:2023-09-26

一切 嗨,我使用搜索 sharepoint 列表,我在选择的情况下看到信息,但我无法理解复制字段值,在其他中查找,我而不是值退出 ID(1、2、3、4...),有必要在"标题"字段中复制它,以防从"选择"字段中选择信息为什么会这样? 即,如果从列表中选择用户, 应显示字段中的用户。

此处代码:

   ExecuteOrDelayUntilScriptLoaded(LoadSLNCascade, "SP.js");
    function LoadSLNCascade() {
        $('#countries').SLN_SPcascadingdropdown(
        {
            relationshipList: "List",
            relationshipParentList: "List",
            relationshipParentListColumn: "First",
            relationshipListChildColumn: "First",
            relationshipListParentColumn: "Seccond",
            childDropDown: "cities",
            autoFillParentDropDownList: true,
            defaulFillChildDropDownList: false,
            promptText: "-- Select Value --"
        }); 
}
$('#countries').change(function() {
$('#TitleField').val($(this).val());

});

这个答案:

$(document).ready(function() {
  $("#list").change(function() {
    $("#field").val($('option:selected', this).text());
  });
});