I was wondering if there's a way to hide fields on the edit form on one view but have them display on another?
Right now I am using:
<FieldRef ID="{EF8477CA-D07E-4368-9359-5A33A9E0222C}" Name="Requester" ShowInNewForm="FALSE" ShowInEditForm="FALSE"/>
this in my contentType, but I'm pretty sure this will hide it throughout the whole site, is there a way to hide it just at specific points so it's still visible on some edit pages but not on others?
Thanks
I would recommend not hiding the Field in the Edit form, but define a custom form in your List Definition and hiding it from that one.
In the list definition scheema add this in your forms element:
<Form Type="EditForm"
Url="CustomNewForm.aspx"
SetupPath="pages\form.aspx"
WebPartZoneID="Main" />
After deploying the list, open the form generated and simply hide the containing the field using css display:none;
Finally, use the custom form where ever you need it.
This can help: Showing or hiding form fields based on membership in a SharePoint group
Related
I'm working on an Access database that will generate forms automatically. For each form, I want to add a page with the same name of the form, and this page will contain the form.
For now, I managed to create the forms, to add a page on the tab control but I can't find the way to add the form created into the page.
In design view, it's possible to drag and drop the form directly into the page. Is there any way in VBA code to obtain the same result ?
Update: I want for the forms inserted to have 'Link Master Fields' and 'Link child fields' empty (unbound form).
Thank you!
I need to create a web part in Sharepoint 2010 that matches the display layout of another web part that displays the list inside individual rectangles. But when I add the web part, all I can do is add link to a list. I tried to "Edit web part" but nothing in there seems to affect the display. Thoughts?
Thanks gang.
Found it! Under List Settings at the bottom is the view. Click or create a view and under Style you'll find a "boxed, No labels" option. That's it.
I have a picture library and added few fields to it. When i click add new item from picture library, the EditForm.aspx appears after uploading the picture. This form contains many fields of which I want to hide Title, Date Picture Taken, Description, and Keyword. In short the EditForm should contain only Name, Preview and the columns that I have added. Is it possible to hide the other columns? I want to perform this out of the box.
Several possibilities.
You can use SharePoint Designer to manipulate the NewForm, EditForm and DisplayForm. Edit the existing form, use CSS to set the out of the box HTML form to hidden, then add a new custom form to the page and remove the columns you don't want to see.
If you don't want to use these columns at all, just delete them in the Library settings
If you don't want to delete the columns, click the parent content type in the Library settings, then edit each column and set it to "hidden"
Check this out: http://sarangasl.blogspot.in/2009/10/hide-column-in-edit-new-or-display-mode.html
I found this solution to be really simple and effective. Very well documented and descriptive.
I'm using Kendo ASP.NET MVC and I would like to have some control over the edit form.
Things I would like to do:
Hide my ID field
Change my Property Code and Square Feet to regular TextBoxFor fields
Change Date of Purchase and Date of Sale to Kendo DatePickerFor instead of the DateTimePickerFor that is showing.
Link to screenshot of editor form
When you click edit, Kendo uses the default EditorTemplate for the object. If you're not familiar how editor templates work, check this article.
You have two ways of solving it, either by creating a custom view editor templates that only lists the fields you want. Or (and this is simpler and preferred method), in many cases you can get away with the default editor template and control which fields are rendered (and how) using metadata on the object. You can hide individual properties by tagging them with [ScaffoldColumn(false)] attribute. In terms of controlling the types of editors that show up, you can accomplish this by tagging your properties with [DataType(DataType.Date)] or [DataType(DataType.Text)]
I have a list, and want to insert custom javascript code in a new form for this list (when form loaded). For example, when new form for this list is opened, I want to make some layout modifications for this form.
How it can be done? And how many ways exist to achieve this?
Thanks.
Upd: I ask about SharePoint list, and SharePoint list forms, I suppose you look at the tags of the question :).
You put tags for both SharePoint 2007 and 2010 and the methods are a bit different.
I agree with the previous post that with SP2010 you can simply use InfoPath designer for form design and do whatever you like to the look.
In SharePoint 2007, there are a couple ways incuding using SharePoint Designer, editing the form .aspx file, hiding the out of the box form and inserting a custom form which you will then be able to edit. You can also add in JavaScript code there as well.
My preferred method if you are just making some visual modifications is always JQuery which you can add in to a content editor and you can look for the particular tags surrounding rows or columns and attach to them and make your changes.
I think your question and tags need further clarification to get an articulate answer from anyone that will actually help you.
You can edit the layout using InfoPath 2010 like described here:
http://office.microsoft.com/en-us/sharepoint-designer-help/edit-list-forms-using-infopath-2010-in-sharepoint-designer-HA101631624.aspx
If you've got the SP2010 Foundation or SP2007 version, you can create custom list forms using SP Designer which gives you the option to do whatever you like since those are .aspx files.
http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-custom-list-form-HA010119111.aspx
You can also edit the aspx List form in SP designer. To add Javascript or jQuery you should create a form for New in PS design then edit in Advanced mode to insert your Javascript in the proper place. There are many tutorials on the Web that talk about this... Also, you can add content editor webparts to the new aspx page where you can insert your Javascript or jQuery.