Hot answers tagged custom-form
4
The below code access current user's department and manager from AD:
SPSite _site = SPContext.Current.Site;
ServerContext serverContext = ServerContext.GetContext(_site);
UserProfileManager myUserProfile = new UserProfileManager(serverContext);
UserProfile currentUserProfile = myUserProfile ...
3
A couple of issues:
The Id part of SPFieldLookupValue should be the Id of the listitem in the list with groups (Groups?) not the Id of the item you're updating. So ideally you setup the ddlGroups with Text=Text from Groups and Value=Id of corresponding listitem in Groups.
The code to populate the ddlGroups should be changed to:
foreach (SPListItem ...
3
Another way to do it (if "Open with Explorer" works for you)
In the form library, on the ribbon navigate under "Library Tools" to the "Library" tab. In the "Connect & Export" section find "Open with Explorer". Depending on your screen resolution the full label may not be displayed; the icon looks like a folder with an arrow pointing to a computer ...
2
Make sure the content type is not set to be read-only. If it is read only, SharePoint will not allow you to change the field order or customize the InfoPath form.
Navigate to the list using the content type and go to list settings from the ribbon
Click on the content type in question (if you can't see them allow management of content types in the list's ...
2
What you can do is the following open up your schema xml document.
Make sure you add a layouts folder to your solution. Add your aspx file there.
and within this tag make these changes from this -->
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" ...
2
Old post, but better answer. It seems like you are converting a paper form into an Infopath form -- this paper form had a box asking 'How many widgets?' and you want the value entered there to dictate how many serial numbers you offer the user...
Why not do it this way -- use a repeating table or repeating section to gather any number of serial numbers... ...
2
From the approaches you mentioned, I'd prefer webparts approach.
WebParts can be connected with each other using SharePoint Connections.
Using OOTB XsltListFormWebPart-s or DataFormWebPart-s for bringing related lists to the form, you can connect them to your ListFormWebPart which displays fields. You can do it using SPD or browser. No coding at all.
With ...
2
first make sure you have activated workflows 2010 in site collection.
Now first create a calendar list and go to its workflow settings (from ribbon) and create a workflow with approval and reject cases.
now by varying views in calendar list i.e, all items view, approved items view (shows only approved items based on workflow status code (16 for ...
1
You might be looking for Cascading Lookup.
There are several of these, like the one on CodePlex, and Mark D have made support for it in his SPServices (SPCascadeDropdowns).
Update:
If you want a very quick and dirty solution you could do this:
By using SPFieldChoice and prefixing the values with previous values like this:
Choice Country
Norway
...
1
Try this
<asp:Button UseSubmitBehavior="false" runat="server" Text="test"
id="Group1" onclientclick="updateText(); return false;" />
<script type="text/javascript">
function updateText() {
document.getElementById('<%=Group1.ClientID%>').value="updated";
return false;
}
</script>
...
1
There could be multiple ways to achieve it:
third-party controls
Silverlight control which uses OM - see here an example
http://priteshdave.wordpress.com/2010/08/09/multiple-upload-with-metadata/
ECMA Script to upload and set metadata (for upload see http://msdn.microsoft.com/en-us/library/ms456628.aspx and for metadata see ...
1
You have a number of options:
Write an entirely custom application page (.aspx) and set that page as the default edit/create page.
Write an entirely custom webpart, put in on an aspx page living on the site somewhere, and then set that as the default edit/create page.
Use Infopath (if you have the enterprise version).
Use sharepoint designer to edit the ...
1
I normally hate "Why" answers, but here goes: WHY? The Edit Form is for modifying the properties of a list item, or a library item (document). The Display Form is for showing (read-only) the properties of a list/library item. If a user is looking at the item properties in read mode, they can click the link and get the document. If the user is in edit mode, ...
1
I don't know if you resolved the problem. But I had the same problem and I resolved only by putting the page that I want to go to like this:
{ddwrt:GenFireServerEvent('__commit;__redirect={default.aspx}')}
In your case I guess you need write:
{ddwrt:GenFireServerEvent('__commit;__redirect{/newItemAdded.aspx}')}"
That is because sharepoint take the ...
1
If to answer the question in title "Single form for multiple lists", then, IMO, the most effective solution is to publish an Infopath form template as Sharepoint content type.
I could have written about it in more details but the body of text is asking/describing something completely unrelated to title for which I would have configured site columns which ...
1
Update:
Another answer by Chris gives better variant.
Navigate in your browser to a list in quesion > on ribbon press "Customize Form" button (under List Tools > List tab > Customize List).
This will open customized before by you Sharepoint List Form in Infopath Designer 2010 which you can save wherever you want.
Though, from your wording of ...
1
My experience (specifically with Master Pages and Page Layouts) is that the issue has 4 intertwining triggers:
Master Pages or Page Layouts are customized/published to the content database
Master Pages or Page Layouts utilize code behind files
Master Pages or Page Layouts do have AutoEventWireup="true" in the <%@ Master %> or <%@ Page %> ...
1
It is impossible to publish "Sharepoint List Form" compatibility/type Infopath template to more than one list
You can "centralize" and automatize (make a script at Windows level to a manual procedure I gave below) to restricting changes just to one template (in Infopath Designer 2010), and after making changes in one, to "replicate" the template's ...
1
Your best bet would be to customize a new form using SPD and do your calculations using JQUERY or JAVASCRIPT you can also make calculated columns that could perform the calculations that you request. This is what I did.
Open SPD
Open the list your are referring to.
On the forms tab click new form
open the form and then click the advance tab.
you can modify ...
1
Try looking at some of these walk throughs:
http://blogs.msdn.com/b/chunliu/archive/2010/09/21/creating-a-custom-login-page-for-windows-authentication.aspx
http://jcapka.blogspot.com/2010/12/nicer-claims-login-page-sharepoint-2010.html
http://tomaszrabinski.pl/wordpress/2011/06/23/sharepoint-2010-custom-login-page/
Unfortunately this isn't a quick ...
1
You can add a javascript function called PreSaveAction onto the pages the will override the Save action to allow you to run your own code. Once your code executes, you return true or false and the item is saved or canceled.
We don't have much to go on, so this might not satisfy your requirements, but it does answer your question.
1
"The form has a group of check boxes that have been created as a
Multiple-Selection List Box"
It is impossible to have a chackboxes or any other controls in Multiple-Selection List Box (MSLB). The choices added into MSLB appear with checkboxes in a form.
I inserted in Infopath 2010 form the multiple selection list box and entered choices in its
...
1
Assuming your version of SPD is 2010, you would need simply to open the appropiate site and then in the Navigation pane, click Lists and Libraries, select the list you want to create a form for, and then on the List Settings tab, click List Form.
The reason why the default web part you see is "locked" is also because best-practice states that you should not ...
1
Hi achieved this 100% dynamic page by creating calling content of web parts in a handler and having a controller web part that return the results in Jquery.
This method is no good for objects to do with security but it allows you to have the page load much quicker visually than it might perhaps normally would as well.
You could go into programatically ...
1
you can replace edit and new forms for lists and libraries with developed by you using module and setting it as default new and edit forms.
You can check this answer for more details.
But I if you want develop new and edit forms with custom look easier, check SPForm tool, you can use editor, javascript and css styles to adjust completely new look for list ...
1
you have several possibilities for this. First of all if you use SharePoint Designer you can easily create custom list forms for a content type. This is described in the following link. http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-custom-list-form-HA010119111.aspx
This customization creates a "normal" list form. This forms can also be ...
1
This link might be useful for you - http://blog.qumsieh.ca/2009/05/15/how-to-change-the-default-editform-newform-and-dispform/
Linked new/edit/display page should be an application page. Parameters such as ItemId and list guid are passed by default in query string automatically by SharePoint. You can then read them and having list guid you can retrieve list ...
1
I think i would make your custom aspx application do everything that needs to be done and not depend on the OOTB edit form. Then on the ootb edit form, just put some redirect code on the page to take them to your custom application. To the end user it should be a pretty seamless experience. Especially if this is SP 2010 and your edit page is in a modal.
1
On a standard list form if an attachment with the same name was added multiple times. If the item will be stored the form throws an exception, that one of the attachments was added multiple time and prevent from adding the item.
In your case you override this exception, which causes that no attachments are available when you try to store the list item. To ...
1
If you want to stay with the out-of-the-box as much as possible you could Edit your form to add a CEWP (Content Editor) which could link to a Javascript using the standard javascript:__doPostBack('<get ID of the DATETIME control>',''); method call available in every ASP.NET page (use F12 IE Developer Tools to get the Client ID generated in the page by ...
Only top voted, non community-wiki answers of a minimum length are eligible
