Tag Info

Hot answers tagged

11

A simple solution is to just validate the fields on submit by adding a validation rule in the list settings. Go to List Settings Open Validation settings under the General Settings area In the formula add your formula, I think it will be like this in your scenario: ...


6

For almost all UI interactions in SharePoint 2010 I use jQuery with either the Client Side Object Model or SPServices. In my opinion this gives me much greater control and richer interactions which users have come to expect.


5

The "problem" is that every list and library is bound to a content type. Unfortunately Microsoft hided that by disabling "Allow Content Type Management" by default. When you create a new field like you did it is added to the list but not bound to the content type the list depends on. If you go to the list settings and enable Content Type management you can ...


5

Can't you just set the default value for the field to be [Today]? You'll also need to utilize the PreSaveAction to reenable the Odate column or it won't get saved. http://wael-abbas.blogspot.com/2009/02/sharepoint-presaveaction.html


5

You could use the "PostRender" event to execute your javascript method after the form is completely loaded, something like: (function () { // Initialize the variable that stores the objects. var overrideCtx = {}; overrideCtx.Templates = {}; // Assign a function to handle the // PostRender events overrideCtx.OnPostRender = ...


4

Found the answer elsewhere that doesn't require SharePoint Designer: Just a quick post in answer to a question I got yesterday: How do you change the order of fields in edit or display forms? Go to the list Enter list settings (from the ribbon in 2010, from the drop downs in 2007) Click Advanced settings Ensure ‘allow management of content types’ is ...


4

One way at least is to use this CSS: .ms-formtoolbar { display: none; }


3

Did you change the column name through List Properties? Is this a site column? The Properties Form should show the Display name for the column (I quickly tested in SharePoint 2007 and works ok).


3

There is a tool called SharePoint Manager 2010. There is also a version for SharePoint 2007. With this tool you can alter all kind of properties of SharePoint. Take a look at it it is very usefull. http://spm.codeplex.com/


3

Yes, and you can do this in C# code or in CAML: <Field Type="URL" DisplayName="MyUrl" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" Format="Hyperlink" Group="Custom" ID="{24e6ce71-9004-41aa-b188-ed84e6cdc103}" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="MyUrl" Name="MyUrl" AllowDeletion="FALSE" ...


3

I have fixed this issue by selecting Full Toolbar in Toolbar Type. The default content type attached to the form library gets opened up and it no more redirects you to uplaod a document... that is great.... it is worked with me


3

You could create a calculated column to concatenate concatenate([SchoolName], " ([City])" the values on the school list and use that calculated field in your lookup. Verified it works in 2007, so it should work no matter what platform you're on.


3

Well, you can do parent child relationships with content types, where Order and OrderLineItem might inherit from Order Master, where Order master has all the common fields that Order and OrderLineItem contain. Then each of those content types have other columns unique to them. Based on what your saying, I might have something like an Orders list that holds ...


3

You could edit the DispForm of the list item and in it have a delegatecontrol (or some other custom control) to count how many times the page has been loaded by unique user id's other than the authors id. Update Create a new user/web/delegate control and insert the following code: var web = SPContext.Current.Site.OpenWeb(); var list = web.Lists["Name of ...


3

I came across a solution which suggested to check for broken lookup columns in the list and went ahead and deleted the broken lookup columns (which were looking up data which was not there) and then it let me to add the forms.


3

This link has step-by-step instructions to restore your newform.aspx. Open the broken form and another working form in SP Designer, remove the ListFormWebPart from the page, then copy the ListFormWebPart from the unbroken page. You also have to update the List GUIDs to make sure the web part is pointing to the correct list. ...


3

The best practice approach is to make copies of each of the forms then edit the copies. Then on the custom forms you can add in custom list form web parts and style and change until your heart's content. With SharePoint 2010, you can also utilize InfoPath to customize the forms pretty easily. Here (from MSDN) is a nice excercise on that process.


3

This looks like good place to start: Custom SharePoint List Forms It will give you some insight on what can be done. Replacing default forms with custom application pages is briefly explained at bottom of the article. I am very fond of this technique but I never come across some really good article that explains everything.


3

Are there two fields for the list item that are people picker fields. I am assuming thats what you meant by stores which users are working on the project. If so you can modify the view by adding filters. Open the view and select modify. Go to the filter section and choose ProjectManager = [Me] or ProjectMember = [Me]. Is there any reason why you are not ...


3

If you go to the List Settings page for that list and choose "Advanced settings," you can set "Launch forms in a dialog?" to "No." Selecting "No" will cause these actions to navigate to the full page.


3

try this: http://path/nameoflist/Forms/EditForm.aspx?ID=IDofitem where Path: path of the site nameoflist : the name of your list IDofitem : unique id of item hope it helps


3

Open the site with SharePoint Designer and navigate to your list Open the "NewForm.aspx" Move your favorite columns to the top Best Regards from Munich


3

If you are talking about the button on the top (X). The controls up there are part of the parent window iirc. So try changing it to: var closeButton = jQuery("a[id^='DlgClose']",parent.document);


3

Good way to remove handlers from dialog's close button is using $clearHandlers Method. Check code below: function fValidateBeforeClose(event) { var isValid = true; //set IsValid value if(isValid) { //close dialog SP.UI.ModalDialog.get_childDialog().close(); } else { alert('Not valid'); } } function ...


3

So it turns out that SharePoint Designer is the only way to accomplish this. You have to go into the page in Designer, edit the page, and select the Insert tab from the ribbon -> New Item Form -> select "CUSTOM LIST FORM..." (not one of the pre-populated lists or you will get the barebones default content type!) -> Choose the list for the form you want to ...


3

I am not sure if I understood your question correctly but if you want to get the current selected item's ID then you can use below code var ctx = SP.ClientContext.get_current(); var items = SP.ListOperation.Selection.getSelectedItems(ctx); using above ID you can get listitem. Below is the URL on how to get list items in JavaScript ...


3

Change this in the above code: ShowInEditForm="TRUE" ShowInNewForm="TRUE"


3

Customize the Edit form (either through SP Designer) or add Content Editor webpart (SP 2010) or Script Editor webpart(SP2013). Add JavaScript code to perform validation. Use SharePoint PreSaveAction() Javascript function. When an item is saved SharePoint calls PreSaveAction(). Here you need to perform the validation. See this for more info: ...


2

What I usually do is forego the Form Web Part altogether and collect the value in a Data View Web Part (DVWP) as well. Then I pass the value on the Query String in a postback to the same page. The initial DVWP can then grab that value from the query String and do its thing.


2

The best solution for that comes from Laura Rogers --> Displaying SharePoint Fields by Permission Level Here is the abbreviated version: You can show/hide fields in a SharePoint Form by setting the conditional formattings with SharePoint Designer. Just open the webform (e.g. NewForm.aspx) and switch to advanced mode. Then choose the field you want ...



Only top voted, non community-wiki answers of a minimum length are eligible