Populate people picker from another list

Hi,
I have a task list that i want to populate the assigned to column with lookup information based on another list, by matching the "Project Name" of the two lists by using SPD 2013, no coding 
Any thoughts?
Thanks a lot in advance

Hi,
Per my knowledge, if you want to populate the Assigned To column value from another list in the New Item form in SharePoint Designer, then you need to use code to achieve this goal.
Here is the code example(my lookup column name is “lookup” in the task list and the People and Group field in the other list (ListA) is “User”):
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("select[Title='lookup']").blur(function()//change the Title to the column name of your lookup column
var val1=$("select[Title='lookup']").val();
getItems(val1);
function getItems(val){
var clientContext = new SP.ClientContext('http://sp');//change the URL to your site
var oList = clientContext.get_web().get_lists().getByTitle('lookup test'); //change the list name to your list where the lookup column get values.
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'ID\'/><Value Type=\'Counter\'>'+val+'</Value></Eq></Where></Query></View>');
this.collListItem = oList.getItems(camlQuery);
clientContext.load(collListItem);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded(sender, args) {
var listItemEnumerator = collListItem.getEnumerator();
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
for (var i = 0; i < oListItem.get_item("User").length; i++) {
var val2=oListItem.get_item("User")[i].get_lookupValue();
SetAndResolvePeoplePicker(val2);
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
function SetAndResolvePeoplePicker(userAccountName) {
var controlName = "Assigned To";
var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
console.log(peoplePickerDiv);
var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
peoplePickerEditor.val(userAccountName);
spPeoplePicker.AddUnresolvedUserFromEditor(true);
spPeoplePicker.SetEnabledState(false);
$('.sp-peoplepicker-delImage').css('display','none');
</script>
After that, the values will be populated in the New Item form after you have selected the lookup column value.
If you just want to set the Assigned To filed value, then you can use workflow to update the column value after creating the task.
More reference:
http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • Component to allow the user to build a list from another list's items

    Hello everybody,
    I'm looking for a widget that allows the user to create a list by choosing from items from another list.
    Something like the tool to customize the button bar in MS Office or MS Explorer. You can see an example of what I'm talking about:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents/displayedcolumns.gif
    It would be easy to program a component like this (and I've already found some piece of code by Googling), but I'd like to know if someone made a stable Swing component of it to avoid reinventing the wheel.
    Thanks in advance.

    There is one here
    http://www.geocities.com/nirajkagarwal/html/ListSelect
    or.htmlThanks, I already found this one via Google but I was looking for something more "professional".
    It seems the apache project team made a utility to
    control elements in a list...it seems very generic
    (maybe over-flexible if there is such a thing...) and
    really needs a tutorial !!!
    http://incubator.apache.org/uima/apidocs/org/apache/ui
    ma/tools/util/gui/ListSelector.htmlYes, it really looks like a work in progress.
    I'll wait some more to see if other readers come with links, then I'll start coding my own ListSelector ;-)
    NB: another example of what I want to accomplish is shown in figure http://java.sun.com/products/jlf/ed2/book/images/SelectableList1.gif

  • Picking from another storage bin

    During picking TO creation the system automatically determines the source storage bin from where the materials should be picked. Lets say the items to be picked are not there and cannot be picked. In this case the operator should be enabled to pick from another storage bin, however the system does not allow this. (This is via mobile data entry and in a bulk SU manages st. type).
    Is there a way to allow picking from another storage bin? If not, can the TO be created without any source determination? Even if I switch off picking strategy, the system expects entry of source bin at TO creation.

    Hi,
      With out a source storage bin , pick TO cannot be created currently. If at all you want a different source bin, you have to cancel the TO, block the current bin and then recreate the TO. That is an exceptional case and should be handled inside the system.
    Thanks
    Vinod.

  • Changing a username in Active Directory - does this update People picker, User Info List etc?

    What happens in SP2013 when a user gets married and changes their name in AD?
    My understanding is that after a full  (?) User Profile import and a People crawl (Full/inc?) - their display name in SharePoint will be updated but in SP2013 do the entries in People picker and User Info Lists also get updated or are their manual steps
    that have to be taken?
    Thanks
    J

    First, User Profiles will be updated after the next incremental sync.  SP 2013 only does Full User Profile syncs manually.  A full sync is not really required.
    Second, there are two timer jobs that will sync the user profile with the user lists in each site collection.  The "Quick" job only syncs new users, while the "Full" job should sync all user changes.  The "Full" job
    runs hourly by default.
    Third, the people picker should be getting its info from AD, although there is some caching that goes on.  So it should pick up the change from AD when the cached information ages out.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • List used to add permissions to InfoPath form updated, but people removed from the list still getting permissions.

    I have a list that gives users Contribute permission to an InfoPath form during a workflow action. This list has changed, and I have added and removed users from it. The people who I've added are getting permissions, but the people I removed are STILL getting
    permissions, even though they are nowhere on the list. What could be happening? I would greatly appreciate any help!
    Thank you,
    -Lyssa Prince

    I must not be explaining this very well, and I apologize for that.
    These are time sheets we're working with, so each user needs a certain set of people to approve and review his/her time sheets. The workflow we have running on each time sheet created reads which department the user is in, matches them with the row that
    contains the field "department" that matches their department, and gives permission to all of the users in the remaining fields TS Approvers and TS Reviewers. If I update these fields at all, the new users in these fields get permissions for that department's
    time sheets, but the people I removed from these fields do not stop getting permissions. It's as if there is a cached copy of the list which is being used by the workflow to assign permissions. This list will fluctuate, so it is not a viable solution to keep
    running powershell scripts to remove people from each of these items after they have been removed from the list.

  • Lookup Attachment from another list

    I am looking to have an attachment field linked to another list in InfoPath 2010.  How can I set up the data connection?  Thanks!
    David L. Crooks

    Hi David,
    According to your description, my understanding is that you want to use an attachment field linked to another list (like “Link from SharePoint”) in InfoPath form. Is it right?
    Per my knowledge, there is no OOB way to achieve it. I suggest you develop a custom control in InfoPath to do it.
    For developing customizations in InfoPath, I suggest you create a new thread on Visual Studio Tools for Office (VSTO) forum, more experts will assist you with Office development.
    VSTO forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto&filter=alltypes&sort=relevancedesc&searchTerm=VS
    Best Regards,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • How to check if a list contains items from another list

    Hi all,
    I am trying to check whether a text list contains items form
    another list and then do something. I tried:
    tlist contains text phrases (e.g., test1,test2,test3)
    phrases = ["test1","test2"]
    n = phrases.count()
    tList.getPos(phrases.item[n])
    alert("should not be inluded in the list")
    But it is not working any ideas why?

    myPhrase is the loop index, but instead of a numerical index
    (like n in your sample), myPhrase is set equal to each item in the
    phrases list, first item to last. So, on the first iteration
    myPhrase = “test1”, on the second iteration myPhrase =
    “test2”. The loop automatically exits when the end of
    the list is reached. The Director help docs have more information
    on this syntax under “repeat”
    BTW: if you're more comfortable using a numerical index, the
    syntax for getting at the n-th item in a list is list[n], or in
    your sample phrases[n]

  • Populate Text fields from Select List

    I have a select list when selected should populate two text fields with values based on SQL Query
    Eg. The select list is for empno and populates ename and sal in two different text fields.
    I have looked at Denes' example http://htmldb.oracle.com/pls/otn/f?p=31517:42 It is very good but the only problem I am facing is how to populate more than one fields.
    Any help will be appreciated.
    ZRH

    Hi
    That would depend on where the SAL data is. If it's on your page, then you could probably do something with javascript. If not, you would have to do some Ajax to retrieve the value from the database. Have a look at: http://htmldb.oracle.com/pls/otn/f?p=31517:80
    Your select list could include both the ENAME and SAL values and your existing javascript would then just split the data into two parts and insert them into the appropriate fields.
    Andy

  • Can I automatically populate one field from another?

    I have two fields on a form (airport_name and airport_code). When the user picks a specific name from a combobox(i.e. Philadelphia International Airport) i want the airport_code field to automatically populate the 3 letter code (PHL). Can anyone help?

    Joseph,
    This question is best suited to the Oracle9iAS Portal Applications Forum.
    Thanks

  • Populate the links from a list in a table format and navigate to the target when on clicked

    hi,
     i want to read a list and few columns and in that one column is a hyperlink column and i want to show as a grid-table- kind of format and when on clicked , i want to navigate to the target.
    whats the best approach for this.
    i know, i can create a   repeater/ gridview and on click of the row databound event in my visual web part i can navigate to the target.
    but, is this possible with the help of OOTB features of  SP 2013? as i dont want to create  a  VWP, and a feature and included in the wsp!
    help is appreciated!

    When you will create the site collection, you can programmatially do the followings:
    Create your custom view for your list (with only selected columns)
    Add a list view webpart in a page, and configure the list view webpart to point to the custom view you have created earlier.
    Also set the JSLink of the list view webpart.
    So whatever, you can do in SharePoint UI, can be done programmatically... And with a single JS file, in future you can change the list-view styles/logic just by JSLink file. Also with list view, you will get the default functionalities - like sorting, filtering
    etc., if you needed
    So if you would like to utilize SharePoint list view features with minor changes in styles/behaviour, list view approach will be better. But if you are looking for totally new looks and styles, then you better go for your own implementation. But from my
    experience, users will look for same behaviour as they see in SharePoint list/libraries.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Emails from another list are automatically deferred from Mailing list

    I have several mailing lists setup on on a server. Most emails go through the listhost without any problems. Posts should be configured to automatically go through for all posters.
    Some of these mailing lists are part of other mailing lists. If one sends an email to a mailing list, of which the server's mailing list is a member, the email will be deferred. The reason cited for deferring the email is "message has implicit destination." I have tried adding the original posters to automatically post all messages from this poster but that does not fix the problem.
    I would prefer not to have any delays or waits for approval of such messages. How does one change this setting?
    Thanks!
    Julia

    Hi ,
    Check the city LOV with hardcoded value first.
    Ex : select city_name from cities where country_name = 'India';
    Go with below query
    select city_name from cities where country_name = ':P_COUNTRY';
    Also select refersh on other parameter selection in the parameter.
    Thanks,
    Ananth

  • Is it possible to create a new List from another List's template and NOT carry over the associated Workflow?

    Related to
    this post, in cases where it's desirable to have two different workflows for two different Lists—is it possible to NOT bring forward a hardwired workflow when creating a new List from a saved template?
    I.e. List #2 still has the workflow from List #1 hardwired in.  List #1 still needs its workflow but List #2 wants to have a separate Workflow.

    More importantly, because it's relatively easy for most folks to just start from scratch with a new Workflow—how does one disassociate a carried-over Workflow from the new List?
    Use the web-GUI. (List Settings > Workflow Settings)
    From Designer, there's a shortcut button at the top of the page in the Workflows tab: "Administration Web Page".

  • SharePoint Task List using Workflow for approver chain, gathering information from another list.

    What I have is a Custom List, that got the following fields for each item. 
    ApplicationName(SingleText) OwnerApproval(Person) ManagerApproval(Person) InstallExeuction(Person)
    Example data:
    | ApplicationName: Photoshop
    | OwnerApproval: Mister Blue
    | ManagerApproval: Mister Red
    | InstallExecution: IT Group
    What I have now then, is a task list as well. Where the user can press new task, and type in their PC name (singletext) and a dropdown menu to choose what application they want, for instance Photoshop.
    I'm not trying to make a workflow that starts when a new item is created to send an email to the OwnerApproval set for this specific application, Photoshop, if he approves it, a new email should be sent to ManagerApproval specific application, Photoshop.
    And if the last person ManagerApproval accepts it, a last email should be sent to InstallExecution, which if this person approves the task is marked as completed.
    I've been trying for mad now using SharePoint Designer and I almost got it to work. 
    Can anyone help me? I'm going mad here, I have VERY LIMITED knowledge in sharepoint designer.

    Hi Plankton,
    To achieve this goal, we can create with three Start a task process steps in the workflow and the workflow needs to be set to start when an item is created.
    For example, the custom list is called Custom, and the task list is called Task Custom.
    We can use the Task Status column for showing as Rejected or Excuted/Installed based on the users’ approval, so we need to add Rejected and Excuted/Installed values to the Task Status column. (same settings for Custom:ManagerApproval and Custom:InstallExecution
    as Custom:OwnerApproval with their own column value)
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • People picker are not displaying all the users from the existing Synchronization Connections

    Hello, I need help.
    I have two domains, an old domain and a new domain that were are migrating to.
    I have 2 connections for Users Synchronizations, one to the old domain and one to the new domain.
    Here is what is happening: when I open people picker from any of the web applications only the users that existed in the old domain are showing and not the new users that are been added to the new domain. Basically people picker is displaying old data/users.
    What can I do?

    The People Picker doesn't leverage UPA Sync Connections. Is there a one way or two way trust set up between the domains? If it is one way (where the old trusts the new), then you need to leverage the peoplepicker-searchadforests property: http://technet.microsoft.com/en-us/library/cc263460(v=office.12).aspx.
    You also need to make sure your SharePoint servers have port access to the Domain Controllers in the new domain: https://peoplepicker.codeplex.com.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Enabling a reports region when a item from a list is picked up.

    Hello,
    Can you help me with this ..
    I have 2 regions on the page 1. will have a select list .. when an item is picked from the list i want to automatically enable the region with report displaying the database records that matches the select pattern
    Thanks in Advance
    -Vasu

    Hi Vasu,
    This depends on what you mean by "matches the select pattern".
    Do you mean that the select list is, effectively, a filter - the user picks one of two reports from the select list and it is then displayed?
    If so, you should have a Select List with Submit. The select list item and its values would then be used as the Conditional Display settings for both reports.
    Regards
    Andy

Maybe you are looking for

  • How can I change my apple ID region after reedeeming a gift card from USA, since I want to use my visa which is from canada?

    Dear Mr/ Mrs: I am pooria, my apple ID id **********@*****.com well actually I have a problem, I have a Visa card and as I recieved a gift card from my friend from USA, aftrer redeeming the card and spend it through app strore, now, I have 0.98$ and

  • Problem with the music gallery after 2.3 update

    Hello Just recently updated my XperiaX10i (French version, not operator sim locked). No problem with the update itself and the phone seems to work properly. But, the music gallery did first not detect the music files already in the 32Go sd card (no p

  • Macbook retina to a projector

    I am trying to attach a macbook retina to a projector using the thunderbolt to VGA adaptor.  I get the background to appear but no applications are visible (although they are visible on the macbook screen)  How do I get them to talk to each other?

  • Low bitrate in quicktime h264

    hi, trying to export a .mov with h264 codec with 30 000 kbps bitrate, but the highest result I get is about 20 000 (and for that I have to set 144 000 kbps in the bitrate settings). any idea why? is this normal or a bug in CC 2014.1? it doesn`t mater

  • No valid business partner assigned to my user?

    I have this error when trying to activate my task list or trying to create any change requests.  Can anyone explain where this can be configured? Thank you! Margo