Tag Info

New answers tagged

2

Add the URL of the next form as the &Source=[url] parameter The Source parameter in the URL is where the browser is redirected to after a Form is saved. Open an EditForm and investigate the URL The URL has to be URL encoded (and it needs to be within the SharePoint domain) https://xxx.sharepoint.com/sites/VM/Lists/Tasks/NewForm.aspx ?Source= ...


0

After some research time I found the way to show that little dropdown :) You have to include in your custom form this: <SharePoint:ChangeContentType runat="server" id="ContentType_" ControlMode="Edit"/> In order to be able to select the content type you want for your item


0

You can use PreSaveAction() function to do your custom validation. This function is executed once you click on the submit button. return true to submit the form or else return false to stay in the same page. Add a js file to the page and insert the code as follows: function PreSaveAction(){ if($('#someid').val() == ''){ alert('Required field'); ...


0

There is no possibility to return to the form from an Eventhandler. I had the same issue like you trying to validate something on editform. It is not so easy when you are trying to make asynchronous calls like you would need to do. Maybe take a look at Jslink and formvalidation: ...


0

If you are creating a custom application page, your page must inherit from the LayoutsPageBase base class and must use one of the dynamic tokens listed below: ~masterurl/default.master – The application page references the master page file that is stored in the MasterUrl property. ~masterurl/custom.master – The application page references the master page ...


0

I use this in aspx and the error disappeared MasterPageFile="~/_layouts/default.master"


0

Use DynamicMasterPageFile instead of MasterPageFile: <%@ Page Language="C#" CodeBehind="newDOPForm.aspx.cs" Inherits="wsp.GenerateDocFromMetaList.Layouts.wsp.GenerateDocFromMetaList.newDOPForm" DynamicMasterPageFile="~masterurl/default.master" %>


0

Adding new columns to the list would add the new controls required. Try looking into PreSaveAction() and PreSaveItem() javascript functions for you javascript needs. You can add javascript directly to the page using the designer or you can add a Content Editor web part and put code there. You could also place code in a separate js file and reference it in ...


0

That is not how you add a form webpart. That will just redirect you to EditForm.aspx. Instead try this: Edit the page -> Add a page viewer web part by clicking on Add a web part. Once you've added the page viewer web part, edit the web part to show this URL: http://siteUrl/Lists/ListName/EditForm.aspx


-1

You may refer this link, if you can consider using the info-path form based solution. https://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/


0

I had the same question. Maybe it helps. I hope it works on-premises the same way as in Office 365: Add document preview to Document library form


0

You can use the custom solution provided by SPGuys. It will allow you to set permissions at View Level as well as Column Level. SPGuys Column and View Permissions


0

Create a sharepoint group for Manager (i.e. Corp_Manager) and Employee(i.e. Corp_Employee). Then on each view, do the following: Go to the SharePoint View. Edit the Page. Edit the Web Part of the view. Under Advanced Options, there should be a Target Audience field there. Put the name of the SharePoint Group that should have access on that view. Click ...


0

I had the same problem and i resolve them as following : Comment out the block of "XmlDocuments" , Set the content type of the liste and when you looking on the Schema.xml file of the list after setting the Content type you find the same line commented. So i uncomment them from the Schema.xml and from the content type and i deploy and it work fine.


1

Use PreSaveAction() function PreSaveAction() { var MyNumber = $('input[title="My Number"]').val(); if( MyNumber == 0 ) { return false; //dont save } return true; //save } http://social.technet.microsoft.com/wiki/contents/articles/31330.sharepoint-using-presaveaction-function-on-custom-list-forms.aspx


1

You can do something like this: function click(){ flag = formValidation(); // call function first to return values if(flag == 1){ alert('Your new request has been submitted successfully'); }else{ // some alert } } function formValidation(){ // validate fields here // something like if(val == ''){ ...


0

Wrap your validation code in a function, as well as your 'success message' code in a different function. Have the first function call the second function if all fields are valid. OnClick, call the first function, which will validate the fields and display to the end user which fields are in error. If no fields are in error, the code will call the second ...



Top 50 recent answers are included