是否在Sharepoint表单中记录用户名/名称?
我有Sharepoint列表数据,需要某些人确认这些数据是否准确,并且我希望表单记录单击“我批准”按钮的人的姓名。这可能吗?类似于psuedo代码的命名是否在Sharepoint表单中记录用户名/名称?,sharepoint,digital-signature,Sharepoint,Digital Signature,我有Sharepoint列表数据,需要某些人确认这些数据是否准确,并且我希望表单记录单击“我批准”按钮的人的姓名。这可能吗?类似于psuedo代码的命名 Button_OnClick Me.VerifiedOn=Date() Me.VerifiedBy=NameOfUser ' <-- This is what I need end sub 理想情况下,我想实现某种数字签名——我们都有PIV卡,但我认为这需要我无法访问政府系统的插件。您的回答将取决于您的表单 如果您使用的是Info
Button_OnClick
Me.VerifiedOn=Date()
Me.VerifiedBy=NameOfUser ' <-- This is what I need
end sub
理想情况下,我想实现某种数字签名——我们都有PIV卡,但我认为这需要我无法访问政府系统的插件。您的回答将取决于您的表单 如果您使用的是InfoPath表单,请在按钮上设置一些规则,将ApproverField设置为userName 如果您正在使用JS中的某些内容,您可以直接这样做:
var fuv = new SP.FieldUserValue();
fuv.set_lookupId(_spPageContextInfo.userId);
sharePointListItem.set_item('ApproverField', fuv);
//now proceed with the rest of the save
这在默认SharePoint表单中是不可能的,但您可以有一个工作流。在更改时运行,然后在伪代码中运行:
If Status equals "Approved"
and ApproverField is blank
Update item (AppproverField = ModifiedBy)