Tag Info

New answers tagged

1

Consolidate into one file. Advantages are big, and disadvantages don't really exist, as you have full control of the functions/variables (sure, you can make mistakes, but you can do that otherwise as well), and browsers cache the JS file, but remember to enable BlobCache.


1

Instead of separate file you can also use CSR/JSLink here. That way you can consolidate all the function for each of the form in one JavaScript file. You simply need to use JSLink option for those pages(Newform.aspx, DispForm.aspx and Editform.aspx). Here is the examples for JSLink(CSR): Client-side rendering (JS Link) code samples Using JSLink to ...


0

You can have millions of form in the list, their is no issue with the number of items in list. Actual Problem arise with List View ThresHold, which limit is 5000. That mean, in a give view if more than 5000 items return then it will throw the error. But their are workaround available, i.e use the index column and filter the views on the basis of index ...


0

The list form and the list view thresh hold are 2 different concerns. On the customized form, the JavaScript should perform the same every time, unless there are things it is trying to do based on information from the very list it lives in. The list view thresh hold is a separate issue entirely from a customized form. Think about what column data is ...


0

You can use Query String Parameter. Add query string Status=Saved or Status=Update Now use below JavaScript code jQuery(document).ready(function(){ var param = getParameterByName("Saved"); if(Status == "Saved") { SP.UI.Notify.addNotification("new item has been added", false); } else if(Status == "Update") { ...


0

I usually handle this by creating a "fileName" field that is created either as a rule on form load or as a rule on submit. This creates a unique file name for your form, and allows it to overwrite previously saved forms on submit. The rule will be an "Action" rule that sets a fields value. Set the field's value to something uniqe. If the G/L is unique, ...


0

You can customize the edit form and configure the atribute "ControlMode" to the value "Display", see: <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Display" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>


0

I've tried a number of approaches for using SharePoint lists as the foundation of master-detail relationships. There are pros and cons to each, but because parent-child relational data is so central to creating structured form data, it was worth the time to figure out how to do this effectively. SharePoint lists are extremely useful because they enable one ...


0

Your use case can be divided into 2 parts. 1. Generate a URL which contains query strings: As you have already placed a button on view form, then first get the url of email list new form which would be something like this http://yoursite/Lists/YourListName/NewForm.aspx?Source=value you can tune it to ...


1

Instead of Required Field. Just add a validation based on following formula. =IF(ISBLANK([Field],FALSE,TRUE) Now use Validation Error Message for custom message.



Top 50 recent answers are included