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


4

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


4

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 = ...


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

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

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

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


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 ...


2

Removing the ContentTypes reference isn't necessarily the right way but I'm pretty sure it's the wrong way. They're there for a reason. You have two options. First, you can create a content type and specify the fields that way. See http://msdn.microsoft.com/en-us/library/ff728096.aspx for information on how to build up the custom list through a content ...


2

It looks like InfoPath (at least in 2007 version) is not supporting images in Rich text box control: http://office.microsoft.com/en-us/infopath-help/insert-a-rich-text-box-HP010080917.aspx#BM3 Quote from Compatibility considerations: You can enable linked pictures for a rich text box in a browser-compatible form template. However, embedded pictures ...


2

I did it recently with jQuery, http://endusersharepoint.com/STP/viewtopic.php?f=13&t=2916&start=10 This is what the code looks like in my scenario, something could be adapted for your use. <script src="../../Resources/jquery.js" type="text/javascript"></script> <script src="../../Resources/SPServices.js" ...


2

I'm assuming you are working with SharePoint 2010. Just wanted to point out on a side note that Forms Library forms and List forms are really two different things. A List form results when you are on a standard SharePoint list and click the button to design the form using InfoPath. I presume you are referring to Forms Library forms. The "Add document" link ...


2

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


2

Some things I've done in the past are: Making a link list dedicated as the central new form list, one click access to enter any form Created several buttons that link to the new forms In some custom dashboards, I've used jQuery and Lytebox techniques to open forms in modal windows (in Sharepoint 2007)



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