我有一个SharePoint列表,它有一个名为“Type”的字段,它包含两个值 1. SOP 2. RAM 这里当用户添加项目并且如果他在“类型”字段中选择“SOP”时,则应该在同一窗口中填充文档链接,其中用户应该能够打开它并填充文档并关闭它(这里是文档)应保存为附件)。
我不能使用任何C#编码,我所有的都是开箱即用的功能。 请帮忙
答案 0 :(得分:0)
您好,您可以使用JavaScript。
只需在页面中添加您的代码即可。你没有提供这种语言的技能水平,所以我不知道你需要多少信息......
但想法是添加与下拉框相关的操作。类似的东西:
<script type="text/javascript">
$(document).ready(function() { // = make sure the page/document is fully loaded
// when we select a value for the dropdown box called "Type" then do some actions
$('select[title="Type"]').on('change', function() {
var val=$(this).val(); // get the selected value
if (val === "SOP") alert("You have selected SOP") // take actions based on the value
})
})
</script>
$('select[title="Type"]')
应该返回名为“Type”的下拉框(通常,在表单中,我们可以使用title属性来定位字段)。