更新时间:2023-12-01 22:33:28
你好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:
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