Custom List Fields
My company uses a SharePoint list to track project status and dates associated. The fields needed to be completed vary depending on the type of project though. Is there a way (without coding) to do the following:
1. User creates new list item, where only one field is displayed titled "Project Type." This would be a drop-down item.
2. Depending on the selection, a specific set of fields will display related to that type of project.
Use content types. You can turned Allow management of CT ON by going to List Settings and then going to Advanced settings.
Content types will allow you to do exactly what you are trying to achieve.
Go through the following video about CT
SharePoint: How to work with content types
This is SP 2007 tutorial but will give you very detailed steps for creating and adding CT.
Understanding SharePoint Lists and Content Types
Amit
Similar Messages
-
Show a custom list field in task list
Hi
i created a custom list and started approval workflow process
i want to provide a field called employename in task list bcz
when apporver user opens tasklist and before approve he will enter employeename in this filed
adilHello,
Above link to add field in task form but if you want to create lookup column so modify your form in infopath. Then add field to get emp name from emp list
One more link to customize task form and add column
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/customize-a-task-details-page-HA103858063.aspx
http://www.jasperoosterveld.com/2012/05/how-to-change-workflow-task-form-with.html
This link will give you an idea to modify the form.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Sharepoint Custom List Mobile view all field values showing empty
I have a custom list where I have multiple fields like employee id, name, title, department, manager. When I browse this form in PC VIEW all fields are showing properly and read only using 1.7.2.min.js & 0.7.2.js , it is working like a charm, I have
also one more like where I have SAP Employee Data I can also able to retrieve the data from that particular list and its also working perfectly.
The problem is that when I browse this list in mobile view all custom list fields showing blank values and enabled which I do not want can you please tell me the solution for this problem, I do not think that there is any problem with jquery or spservice
version issue, please guide as soon as possible...
Thanks
Adnan AmjadAnd check if your mobile view is configured as per http://technet.microsoft.com/en-us/library/ff393832(v=office.14).aspx
Please remember to click 'Mark as Answer' on the answer if it helps you -
Unable to capture data from drop down list in custom added field in migo tcode at item level
Hi guys,
need bit help in resolving query related to custom added field in Tcode migo.
i have added a field in migo at item level ,in this i have used drop down list
to get data but unable to capture data from drop down list.gown through
many blogs in scn but unable to resolve.
Please help me out in this.
Thanks,
Umakant.Hi,
U can use following code to fill the list box
write this code in PBO
In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
TYPE-POOLS vrm.
DATA values TYPE vrm_values WITH HEADER LINE.
TABLES: <ur custom Database table>.
clear values, values[].
SELECT * FROM <ur custom Database table>.
values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
APPEND values.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = '<SCREEN INPUT FIELD NAME>'
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Also please define the following before accessing the listbox value
data: <listbox input field name> type <table field name>,
<inputfield name where text to display> type string in top include
In PAI, select the text from the table into <inputfield name where text to display> depending on value selected which will be called when enter key is pressed or any vale is selected -
Read External List Field on Custom ECB action
I tryed to show a Custom ECB action on an External List.
The External List have a Field "LOGICAL_ID" with an IP address, but the GetAttributeFromItemTable works only with Standard List.
How i read the External List Field and open some shell or browser actions with these field?
<script language="Javascript" unselectable="on">
// START: Override Function
function Custom_AddListMenuItems(m,ctx)
var strDisplayText = "Ping";
var strDisplayText1 = "Browse Http";
var strDisplayText2 = "Telnet";
var strDisplayText3 = "SSH";
var strDisplayText4 = "Remote Desktop";
// for test strDisplayText = currentItemID;
var LOGICAL_ID = currentItemID;
// var LOGICAL_ID = GetAttributeFromItemTable(itemTable, "LOGICAL_ID");
// var LOGICAL_ID = itemTable.getAttribute("LOGICAL_ID");
var strAction = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('ping -t" + LOGICAL_ID + "');window.refresh";
var strAction1 = "http://" + LOGICAL_ID;
var strAction2 = "telnet://" + LOGICAL_ID;
var strAction3 = "telnet://" + LOGICAL_ID + "/? -ssh";
var strAction4 = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('mstsc /v " + LOGICAL_ID + " /admin');window.refresh";
var strImagePath = "";
// Add menu item
CAMOpt(m, strDisplayText, strAction, strImagePath);
// add a separator to the menu
CAMSep(m);
CAMOpt(m, strDisplayText1, strAction1, strImagePath);
CAMOpt(m, strDisplayText2, strAction2, strImagePath);
CAMOpt(m, strDisplayText3, strAction3, strImagePath);
CAMOpt(m, strDisplayText4, strAction4, strImagePath);
// false means that the standard menu items should also be rendered
return true;
// END: Override function
</script>Hi,
If you want to disable the Rich Text Field dynamically, you can consider to use JavaScript and JavaScript Client Object Model.
The “disable” attribute seems not work on Rich Text Editor control, so we can set the “display” attribute as “none” to hide the control instead:
<script type="text/javascript">
document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue").style.display = "none";
document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_toolbar").style.display = "none";
document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_iframe").style.display = "none";
console.log('hide');
</script>
You will need to find out the id of the toolbar and textbox of the Rich Text Editor control in page using IE developer(F12) first, then replace the ids in the script above.
We can get values of list items using JavaScript Client Object Model:
http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
More information about JavaScript Client Object Model:
http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
Feel free to reply if there are still any questions.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.Hi shakonarson,
According to your description, I try to reproduce your scenario but the lookup field works fine.
When we customize the form for the list in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot display its value.
For troubleshooting your issue, please take steps as below:
Go to lookup List Box on your form in InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
Make Sure you select “Get choices from an external data source” and correct Data source.
Make Sure the Xpath of Entries is “d:SharePointListItem_RW” under the dataFields.
Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a look:
Sort SharePoint lookup column Dropdown by customizing your list form
with InfoPath
Hope this helps!
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Created By and Created Date fields not showing up on Custom List form webpart
Hi,
I have added Custom Listform WebPart on "DispForm.aspx" of custom list. I need to display, out of box fields "Author" [Created By] and "Created" [Creation Date] on this custom list form webpart, I have added them on the webpart, following is the code behind of aspx page:
<td width ="400px" valign= "top" class="ms-formbody">
<xsl: value-of select = "@Author" disable-output-escaping = "yes"/>
</td>
However these fields are not showing/populating data on the form ?? Any inputs ???
RegardsHi,
I think that when you insert a custom list form web part you select “Item” content type, so custom list form is designed to display only the fields that are appropriate for that content type “Item”, but the item content type doesn’t contain the created and created by column, when you add the two columns, it will not find the field value. By default, the two columns will display at the foot of the list form using SharePoint:CreatedModifiedInfo.
Hope it can help you.
Xue-Mei Chang -
Cannot remove description field after adding to the Custom List
Hello,
Applies To: SharePoint 2013
Problem: We created a Custom List and added a Description column from "Add from existing site columns" link. Now we need to remove it and it seems to have been sealed. We are not able to delete it.
There is no remove/delete link/button when we click on the field. Moreover in the Content Type it only shows Required, Optional, Hidden.
Requirement: Need to remove this field from the Custom List. Incidentally we added two of the description fields. We need to remove both of them without deleting the list itself.
Thank you and
Regards
Tanzim Akhtar
Tanzim AkhtarHi Tanzim,
Try the following code. I tested it and it should work for you.
Add-PSSnapIn Microsoft.SharePoint.Powershell
$web = Get-SPWeb "Web URL"
$list = $web.Lists["List Name"]
$field = $list.Fields["Description"]
$field.AllowDeletion = $true
$field.Sealed = $false
$field.Delete()
$list.Update()
Remove-PSSnapIn Microsoft.SharePoint.Powershell
Narahari
******If a post answers/helps your question, please click "Mark
As Answer" on that post and/or "Vote
as Helpful******* -
Retrieve a list of different values of custom metadata field of an UCM connection
Hi
I am planning to create a custom search document functionality for my UCM and Portal integration. Basically, I am planing to create CMIS queries dynamically. In order to create the CMIS query, I need the possible values of custom metadata for the user to select from and through a backing bean construct the cmis query based on this selection.
I have created a custom metadata field (lets say, 'KindOf'). So I want to show the user a list of all possible 'KindOf' values, so user selects the values he wants and I use those values to build the cmis query and show the results.
What is the easiest, best practices, how would you do it, way of achieving this?
I have little experience with UCM.
RegardsHi,
As rightly pointed out by jiri machotka, you want that option list .
if you create a option list metadata, you have to publish schema to get the values. You can do it by two ways:
1) Wait for the event which publish the schema automatically.
2)Select "Publish schema" in the options menu of the Configuration Manager.
Some good implementation info about searching can be found at - Students at Oracle: UCM: Creating search and check-in profiles with custom metadata
and http://www.slideshare.net/heikim/effective-strategies-for-searching-oracle-ucm
Otherwise if you want faceted search or something near to enterprise searching capabilities, then go for enterprise search engines.
I have recently worked on Enterprise Search Engines on various CMS products for better,intuitive and relevant search results.
Hope, above information can help you out.
Regards,
Hoque -
Editing Autofill List for Custom Metadata Fields
I have 13,000+ photographs cataloged in Aperture 2.1 In an effort to better manage these photographs, I have added custom metadata for my own use. The fields let me know whether I have printed for my portfolio, watermarked, added to my web site, status of release, etc. All of this data is manually entered and at times my fingers don't always hit the correct keys on the keyboard so I end up with autofill data that is incorrect. I have been unable to find a way to edit the autofill data for custom metadata fields. Selecting 'Edit Autofill List' does not give me access to my custom field autofill information. Am I missing something? Is this an oversight on my part or on the part of the application?
Unfortunately I'm not using presets to do this. I don't think presets will help me with this, but it could be just that I don't understand presets that well. I use presets for entering Metadata from a shoot as I 'import' the raw files into Aperture. Maybe I'm trying to do something that Aperture was never intended to do, yet I need to have as few locations where I track
As an example, as I print a photograph for my portfolio I mark one of the custom fields labelled 'Printed' as 'Yes'. Later I can locate those 4 or 5 star photographs that haven't been printed and decide if I want to print them. I use the same type of arrangement for my website with an 'Added to web' indicator as 'Yes'. I may also mark that 'Printed' field as 'N/A'. The reason follows. For watermarking photographs before adding them to my site via iWeb, I export and the photographs and then reimport the watermarked photographs into a separate project but since these photographs are at a lower resolution, have a different color profile and are jpegs, I never print them for my portfolio so I mark them 'N/A' in the 'Printed' field. Well my fingers do slip on the keys and before I realize it the nifty autofill now requires that I type not just the 'N' to get an 'N/A', but I must type it all, because one time I typed 'N and a space' or some such and that is what autofills. It even happens with 'Yes'. I suppose the real answer is to be more careful as I type, but that is not my reality.
So, all I'm looking for is a way to have access to the autofill list that is created for my custom metadata fields so that I can delete the erroneous autofill entry. I've thought about deleting the field entirely and recreating it, but that would remove all those indicators or flags that I have already entered for my photographs.
Alternatively I could find an IPTC field that I am not using and find a way to use it, (because those fields have autofill lists that can be edited). However my record keeping would be exported with the photograph. Some of the information that I collect is private and should not be included in the metadata while other information should be; that is why I've settled on custom metadata fields.
I hope there is a simple answer to this that I'm overlooking.
If someone else has another way of tracking this same information that is better than the custom metadata fields, I would like to hear about it. However, it would mean reworking all my photographs that Aperture currently manages. -
Checks if item field link exists into a custom list
Hi;
I have a custom list with 2 columns : Title and SITE (field link)
Title (text) :
SITE (link) : URL + DESCRIPTION
I would like to write in programmming a code which allows to checks before to add a new item if this item exists or not into the list in using only the DESCRIPTION or URL field.
Like this :
if(DESCRIPTION !exists)
{ add item }
else{ show message : the site exists }
RegardsHi,
We can use event receiver to achieve your requirement. The following code for your reference:
using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;
namespace SharePointProject5.EventReceiver1
/// <summary>
/// List Item Events
/// </summary>
public class EventReceiver1 : SPItemEventReceiver
/// <summary>
/// An item is being added.
/// </summary>
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
if(properties.AfterProperties["SITE"]!=null)
string linkField=properties.AfterProperties["SITE"].ToString();
string urlValue = linkField.Split(',')[0];
if (CheckItemExists(properties.List, null, urlValue))
properties.Status = SPEventReceiverStatus.CancelWithError;
properties.ErrorMessage = "The site exists.";
private bool CheckItemExists(SPList list, SPFolder folder, string urlValue)
SPQuery query = new SPQuery();
if (folder != null)
query.Folder = folder;
query.Query = @"
<Where>
<Eq>
<FieldRef Name='SITE' />
<Value Type='Text'>" + urlValue + @"</Value>
</Eq>
</Where>";
SPListItemCollection found = list.GetItems(query);
return (found.Count > 0);
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Site Definition with Custom List Intance with Custom fields
How to create VS 2012 > Site Definition with Custom List Instance with Custom fields?
<site>
<list>
<field>Hi Sunil,
it is the same way we create in VS 2010.
Add a new empty SP project in VS2012 and then add, site, list and fields as per your requirement.
Here are few references-
Creating SharePoint 2010 Site Definitions in Visual Studio 2010
http://msdn.microsoft.com/en-us/library/gg276356(v=office.14).aspx
Creating SharePoint 2010 List Definitions in Visual Studio 2010
http://msdn.microsoft.com/en-us/library/gg276355(v=office.14).aspx
Walkthrough: Create a Basic Site Definition Project
http://msdn.microsoft.com/en-us/library/ee231583.aspx
and I normally create a blank site with all required configuration and then create, import the template to hand craft the list and fields. this would minimize errors.
see the below blog on this topic
http://blogs.msdn.com/b/sambetts/archive/2013/10/17/creating-a-clean-visual-studio-solution-from-a-sharepoint-2013-site-template.aspx
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if the reply helps you -
How do I output custom CRM fields on a Customer Orders list layout template?
I am familiar with using {module_customerfield, 123456, 789123} to show custom CRM fields for Customers, however I would like to know if I there is a way to do that for Orders. I have a Customer Orders list layout template with a table:
Reference# Details Name
{tag_orderid} {tag_ordername} {module_orderfield, 168113,509283}
Is there a way in BC to output custom CRM Order fields?I am familiar with using {module_customerfield, 123456, 789123} to show custom CRM fields for Customers, however I would like to know if I there is a way to do that for Orders. I have a Customer Orders list layout template with a table:
Reference# Details Name
{tag_orderid} {tag_ordername} {module_orderfield, 168113,509283}
Is there a way in BC to output custom CRM Order fields? -
On deleting an item, "Name" column of recycle bin is updating with data in one of the custom column instead of title field in SP 2013 Custom list.
Thanks, ChinnuHi,
According to your post, my understanding is that you want to update title field in recycle bin with other field value of the item.
We can use the ItemDeleting Event Receiver to achieve it.
While item is deleting, replace title field value with other field value using ItemDeleting event receiver, then in the recycle bin, the title value will replace with other field value.
However, there is an issue while restore the item from the recycle bin, the item title would be replaced.
As an workaround, we can create a helper field in the list to store the title field value while deleting, then replace back while restoring using
ItemAdded Event Receiver.
I have made a simple code demo below to achieve this scenario, it works like a charm(the
Test2 field is the helper field, you can hide it in the list), you can refer to it.
public override void ItemDeleting(SPItemEventProperties properties)
properties.ListItem["Test2"]=properties.ListItem["Title"];
properties.ListItem["Title"]=properties.ListItem["Test1"];
properties.ListItem.Update();
base.ItemDeleting(properties);
/// <summary>
/// An item was added.
/// </summary>
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
properties.ListItem["Title"] = properties.ListItem["Test2"];
properties.ListItem.Update();
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Add two attachment field in custom list through sharepoint designer 2013
Hi all,
I want to add two attachment columns to the SharePoint 2013 custom list through SharePoint Designer 2013 (not using ribbon attachment option) only . I managed to attach single attachment column to the attachment field. But I am not able to create second
field for attachment.
for example, one column for attaching address proof and second column for identity proof.
Any help would be appreciated.Out of the box this simply isn't going to be possible the way you seem to want it. The attachment field does allow for multiple attachment, but I can see why you'd potentially want these separated out.
Alternative:
You could instead create a link field for each. Users load the documents into a document library and then copy the URL to paste into the form. If you potentially need multiple attachments for each, you can use an InfoPath form and a repeating table.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]
Maybe you are looking for
-
Is it possible to store all iTunes files on an external drive?
Is it possible to store all iTunes files on an external drive? I'd like to free up space on my Mac Book Air and iTunes is the largest space hog. What can I store on my 1TB external drive and delete from the laptop's hard drive?
-
Simple question (Trace issue) Access of undefined property
Having a strange issue with my new Flash Builder and the trace command. Anyone seen this before and why? <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
-
Some interview Question?
hello all, as this forum has many brilliant minds, i have some interview question, if you mind please let me know the answer.... q1. default level at which validation accurs? q2. in which case property pallet display **** as a property value, what it
-
Aperture crashed twice today. Comments?
Aperture crashed twice on me today. Have since repaired the Library. Once was while using BorderFX. The other time I was building a complex filter in Places View. It's been a while since Aperture has outright crashed on me. Snips from crash logs
-
Why am I seeing dust inside my iPhone 5S camera lens?
I don't have a case for my iPhone 5S and I do carry it in my jeans pocket. I am also not a messy person. So today I noticed something -- there's clearly some dust inside the camera lens (the one in the back.) When I shake the phone it rattles around.