SharePoint Online自定义保存在新项目中保存 [英] SharePoint Online Custom Save in New Item Save

查看:107
本文介绍了SharePoint Online自定义保存在新项目中保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好 -


我在学习SharePoint Online时遇到困难。  我过去曾经使用它,但很明显,事情发生了变化。


这是我需要一些帮助的场景(顺便说一句,这在SharePoint Online中):


我设置了一个列表,以便客户使用SharePoint Designer通过NewForm1.aspx(自定义添加记录表单)登录并创建服务请求:


  1. 我删除了表单顶部的保存和取消,我删除了一些我不想显示的字段。  我还从表单上的工具栏中删除了"保存"。  我想从表格的底部
    中删除保存和取消。  目的是让所有导航都从新项目表格的工具栏中进行(即提交和取消按钮)。
  2. 我想要一个"提交"按钮。保存记录并将用户带到自定义"谢谢"的按钮页面,已经创建。  我还设置了一个工作流程,通过向最终用户发送电子邮件,添加了一个新的列表项,即
    。  我还希望设置一个计时器,以便在x秒后,它会注销和/或关闭浏览器标签。
  3. 最好设置它以便在新的时候项目页面被打开,最终用户除了新表格之外没有看到任何其他内容。
  4. 我需要另一个列表是"内部评论"。与原始列表项相关但对最终用户不可见。

这些是我需要能够尽快修复的最紧迫的项目。 / p>

我提前感谢您的帮助。  我不是任何方式的网络程序员,我知道什么是SharePoint的野兽。


杰夫

解决方案

你好Jeff,


1和2:


我们可以隐藏"保存"和"取消"按钮和一些使用CSS的字段并修改"保存"按钮到"提交"并提交并重定向到您的"谢谢"使用jQuery代码的页面。

< style> 
输入[value ='保存'] {
display:none;
}
输入[value ='取消'] {
display:none;
}
< / style>
< script src =" // code.jquery.com/jquery-1.11.3.min.js"类型= QUOT;文本/ JavaScript的">< /脚本>
< script type =" text / javascript">


(function(){
ChangeSaveName();
GoToPage(" / Pages / ThankYou.aspx");
});
函数ChangeSaveName(){


(" a [id ='Ribbon.ListForm.Edit.Commit.Publish-Large']。ms-cui-ctl-largelabel" )的.text([提交");
}
函数GoToPage(pageUrl){
var stringURL = location.href;
if(stringURL.indexOf(" AllItems")> -1){
stringURL = stringURL.replace(stringURL.substring(stringURL.indexOf(" Source ="),stringURL.length ), '源=' + _ + spPageContextInfo.webAbsoluteUrl PAGEURL);
location.href = stringURL;
}

if(!(stringURL.indexOf(" Source =")> -1)){
location.href = location.href +"?源= QUOT; + _ + spPageContextInfo.webAbsoluteUrl PAGEURL;
}
}
< / script>


3。我们可以隐藏最终用户电子邮件字段,并在页面加载时使用jQuery设置默认值。


4。您可以设置列表权限来实现它。


最好的问候,


Dennis



Hello everyone -

I'm muddling my way through learning SharePoint Online.  I've used it in the past, but obviously, things change.

Here's the scenario I need some help on (btw-this in SharePoint Online):

I have a list set up so that a Customer will log in and create a service request via the NewForm1.aspx (custom add record form) using SharePoint Designer:

  1. I have removed the Save and Cancel at the top of the form and I've removed a couple of the fields I do not want displayed.  I have also removed the Save from the toolbar on the form.  I would like to have the Save and Cancel removed from the bottom of the form.  The intent is to have all navigation take place from the toolbar on the New Item Form (i.e. a Submit and a Cancel button).
  2. I would like to have a "Submit" button that saves the record and takes the User to a custom "Thank You" page, which is already created.  I also have a Workflow set up to email the End User on the addition of a new list item being created.  I would also like to have a timer set so that after x amount of seconds, it would logout and/or close the browser tab.
  3. It would be preferable to have it set so that when a new item page is opened, the End User does not see anything other than the new form.
  4. I need to have another list that is an "Internal Comments" that is related to the original list item, but is not visible to the End User.

These are the most pressing items that I need to be able to fix ASAP.

I appreciate the help in advance.  I'm not a web programmer by any stretch of the means and I know what a beast SharePoint is.

Jeff

解决方案

Hi Jeff,

1 and 2:

We can hide the "Save" and "Cancel" buttons and some fields using CSS and modify the "Save" to "Submit" and make submit and redirect to your "Thank You" page using jQuery code.

<style>
input[value='Save']{
	display:none;
}
input[value='Cancel']{
	display:none;
}
</style>
<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<script type="text/javascript">


(function(){ ChangeSaveName(); GoToPage("/Pages/ThankYou.aspx"); }); function ChangeSaveName(){


("a[id='Ribbon.ListForm.Edit.Commit.Publish-Large'] .ms-cui-ctl-largelabel").text("Submit"); } function GoToPage(pageUrl){ var stringURL = location.href; if(stringURL.indexOf("AllItems")>-1){ stringURL = stringURL.replace(stringURL.substring(stringURL.indexOf("Source="),stringURL.length),'Source='+_spPageContextInfo.webAbsoluteUrl+pageUrl); location.href = stringURL; } if(!(stringURL.indexOf("Source=")>-1)){ location.href = location.href+"?Source="+_spPageContextInfo.webAbsoluteUrl+pageUrl; } } </script>

3. We can hide the End User email field and using jQuery set the default value when page load.

4. You can set the list permission to achieve it.

Best Regards,

Dennis


这篇关于SharePoint Online自定义保存在新项目中保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆