使用新项目表单中的Javascript将当前用户名放入newform.aspx的单行文本字段中 [英] Get current user name into the single line of text field for newform.aspx using Javascript in New Item form
问题描述
newitem.aspx打开弹出窗口,所以我需要在哪里添加内容编辑器webpart。在打开newitem表单时,我需要将
当前用户名自动填充到单行文本字段
转到列表设置 - >
高级设置,将对话框设置为否并保存,然后转到"表单Web部件"(在列表视图中)您想要插入JavaScript脚本,现在您可以将webpart添加到页面并插入脚本。
单击"停止编辑"进行保存,在测试脚本成功运行后,可以将列表表单还原为对话框模型中打开。
最好的问候,
利跨度>
newitem.aspx opening into the popup, so where do I need to add Content editor webpart. While opening newitem form, I need to autopopulate current user Name into sigle line text field
Hi,
Go to your list settings-> Advanced Settings, set the Dialogs as No and save, then go to the ‘Form Web Parts’ (in list view) you want to insert JavaScript script, now you could add webpart to page and insert the script.
Click ‘Stop Editing’ to save, after you test your script runs successfully, you could revert list form to open in dialog model.
Best Regards,
Lee
这篇关于使用新项目表单中的Javascript将当前用户名放入newform.aspx的单行文本字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!