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


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

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

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

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

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

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


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

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)


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

Maybe you can consider alternative approach for your solution. You can add additional library designated for storing exe files. Then you can establish link between list and library by using additional url field on list to store direct link to exe in library (if you only have one-to-one relations) or you can use lookup field in library to establish ...


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

For some simple instances, you can use the settings under Item-Level Permissions section which is found in the list settings' Advanced Settings page. Here you can set the list to only allow users to View and Edit their own items. Users involved in workflows to approve/edit other users' items would need to have Manage List Permissions.


2

This is not so trivial. Take a look at SPServices and see if it fits. And take a look at this QA: Pull values from a lookup column using SPServices()


2

you might added the extra curly brace to build the MAIN() like the sample below <script type="text/javascript"> $(document).ready(function () { //program logic }); } // the culprit extra brace </script> http://social.msdn.microsoft.com/Forums/sk/sharepoint2010general/thread/a9fb3163-109c-4309-96d2-4f2f19e6824a ...


2

SPServices has a method for this: The SPArrangeChoices rearranges radio buttons or checkboxes in a form from vertical to horizontal display to save page real estate. The documentation is here: SPServices.SPArrangeChoices


2

@Kate Ponomareva sorry for the delayed reply (wasnt online), follor below steps to add html form webpart 1 : through SPD create your required forms for the respective list and make them as default or you could use the default form itself 2 : go to your sharepoint site, click on the list from View All Site content or Quick Launch 3 : in top ribbon click on ...


2

I guess you could technically use the SessionState for this scenario but I think you really need to be loading the saved values on edit. What would happen if someone tried to edit the form at a later date, potentially on another computer? You would have to load the values, so you might as well do that in this instance too.


2

I simply Created a SharePoint WCF Service and used it to merge sharepoint data and SQL data. I never had luck with BCS or External lists. I don't think it has the capability to handle much data. Here is a link to how to accomplish this. http://msdn.microsoft.com/en-us/library/ff521581.aspx Just make sure you access your sql database from here. After you ...


2

Have you considered using a standard SharePoint List with a form either in SharePoint or using InfoPath? THis allows you to lock down the list, and also allows you to set the protection on the list to only allow the users access to their own data. Once completed the data can then be exported to Excel to manage the final results. Pro Tip: Do some research ...


2

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


2

Just doing a proof concept you can put this code in the NewForm Web Part adding a content editor web part $( document ).ready(function() { $(".ms-cui-tabContainer").remove(); $("#s4-ribbonrow").css('height','35px'); $("#s4-titlerow").attr('class','ms-dialogHidden'); $("#s4-titlerow").css('display','block'); }); This worked for me


2

That image is part of an image sprite (where you have one image file containing many images) included in these two files: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\IMAGES\formatmap16x16.png C:\Program Files\Common Files\microsoft shared\Web Server ...



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