Populate sharepoint list column based on another column value - sharepoint

I have a SharePoint 2010 List with two columns, State and City. State is populated with a list of states while City is populated with a list of cities. The City list also has a State column. I want to filter the City list according to the selected state. How can I achieve this without using InfoPath, SharePoint Designer or a web part. I want to do it only in SharePoint. Is that possible to give a message when they select the city stating "Please select State before selecting a City"? If any JQuery or JavaScript will be used then how can I use that.

Use Managed Metadata instead. Create a tree with the states and the cities and then add that as a column instead.
http://www.sharepointnutsandbolts.com/2009/12/managed-metadata-in-sharepoint-2010-key.html

You can use JavaScript, but to do it you need either Sharepoint Designer or a web part .... So in JavaScript you could use SPService or SPJS

Related

Sharepoint update field based on lookup

I have a Sharepoint online list "myList" with fields PersonName, OriginCountry and OriginCity and another list of countries and cities called "WorldList" with columns Country and City.
In myList the user will select their city using a lookup to Worldlist. I want the country field to update based on what is entered into the city field.
What's the best way to do this?
I would like to do this without a webPart, Powerapp or Flow, but will use them if necessary. I would prefer to use a Flow rather than a Powerapp or webpart.
When you set the OriginCity lookup column in myList from WorldList, please add an additional column country as shown below:
If you don’t want to show the additional column in list view, you can hide the column.
Then create a flow to update the OriginCountry value using the additional column "OriginCity:Country":
Simple test for your reference:
-------------------------Update----------------------------------
Note, exclude OriginCountry ID, other columns will use the property under "when you created or modified the item" option.

Sharepoint passing parameter from one list to another

I have 2 Sharepoint lists. I want to send ID number from one list to another which can be used as a filter value in second list. So when I click on text of issue list, it should go to another list which shows all the issues related to corresponding ID number.
I am using Sharepoint 2013 and Sharepoint 2013 Designer.
You need to create ID number as a lookup column.
See:
Create list relationships by using unique and lookup columns
http://office.microsoft.com/en-us/sharepoint-help/create-list-relationships-by-using-unique-and-lookup-columns-HA102771358.aspx

WorkAround create a look up column

I want to create a Look up column to bring the data of a column "Person/Group" in other library but I can´t.
I found some solutions to this inconvenient, for example:
https://sharepoint.stackexchange.com/questions/56745/is-it-possible-to-make-a-lookup-column-that-looks-up-person-or-group-type-from
But, I can't use them because the politics of the company I'm working, forbade me to code in Sharepoint or even use Sharepoint Designer.
So... is there a workaround this problem, maybe working with InfoPath or something?
Thanks in advance
Why not use the list settings graphical user interface of SharePoint?
Have a look at
Sharepoint: Calculated column based on another list
http://www.youtube.com/watch?v=ShLH0mBcA54
== Update after some discussions ==
Lookup columns can only be linked to other lists and the only built-in list that contains any users is the hidden User Information List. This list you can link to, to do it any other way you must create your own list with users

SharePoint 2007 List column name with different display name

I'm very new to using SharePoint. I have created a custom list that I use as a linked table in Access. As the access database pre-existed, i need the column names in my SharePoint List to match those that are in the Access Database, otherwise all my Reports & Queries etc will not work.
Is there a way to have a separate display name for the columns in my SharePoint List.
For example, the column names are currently like "Innov_Desc", which isn't User friendly. When the users are adding "New Items", I need to display "Description" for example.
Any help will be appreciated.
Thanks
Derek
If you are trying to do this change from the the user interface (from settings), I'm afraid it's impossible. You will have to do this change in the code.
Please check the links below to get general idea of what is involve when naming columns:
Finding the internal name and display name for a list column
SharePoint Column/Field Display Names vs Internal Names
You can change the display name to something more user friendly via the UI after the column has been created. The internal name of the column will remain whatever it was at the point of creation.

Mapping Infopath fields to Sharepoint columns

Any one has any idea how to map an infopath field to a sharepoint column of type choice? The infopath field is a repeating field, so the user can select multiple options, I want to be able to map those to the choice field in sharepoint. Any ideas?
update:
What I'm trying to do is the following. I have a choice column in sharepoint which allows user entered values. In infopath, I have a repeating field. I'm binding the field to a dropdownlist. The dropdownlist gets filled by a webservice. This dropdownlist is in a repeating section, so the user can choose to select from multiple dropdownlists. So lets say the user adds 2 dropdownlists, and selects an option from each dropdownlist. I want to be able to add those selections as choices in the sharepoint choice column.
SharePoint list is a flat structure, and because of that Infopath does not allow you map repeating sections to list columns.
You might wanna consider the following workaround:
Store Infopath form to one library
(along with non-repeating fields)
Use one of these custom activities to extract data from
repeating table and copy it to
another list
Create a custom data view or a web part to display these items (if
necessary)
This approach can be useful if you need to do some additional tasks with the repeating data.
When you are promoting fields within a repeated section into SharePoint columns, the options available are to promote the column as:
first (i.e. only the first selection is promoted)
last
count
merge (I believe this merges all the selected values together into a single entry)
screenshot http://img4.imageshack.us/img4/5539/repeatinggrouptr3.png
Is it not similar to Create a Repeating Cascading List from:
a Flat Data Source or
a Hierarchical Data Source ?
If it is, may be those two articles may give you some pointers.
Depends on the type of choice field it is.
If it is a Multiple Select (checkboxes) Choice field, you can set the field through the object model (from the sharepoint site) or through the web service, by using ";#" for each item that you want to check mark, where is the value which is listed by the checkbox. I don't remember what the option is for single choice only, but it is something of the same nature. If you are talking about lookup fields, it has to do with the index number of the field from the list you are looking it up from. Also, there is additional steps if the choice field allows users to input or specify their own options.

Resources