Auto-populating Infopath fields from a Sharepoint list after selecting a drop down

I currently have two lists one titled 'Book of Work' which holds details around on-going projects and the other titled 'Book of Work Amendments' which are requests submitted by users to change project details (through an infopath form).
There is a column in the BoW Amendments list entitled 'Select Project' which has a lookup to 'Project Name' in the BoW list. The aim is that when a user chooses an option from the 'Select Project' drop-down, other fields in the form such as 'Project Manager',
'Project Description' will be automatically populated with data from that row in the BoW table.
I have connected both Sharepoint Lists as data connections with BoW Amendments being the primary and BoW the secondary. If we take the Project Manager field as an example the method I have attempted is as follows:
. Create a rule with condition Select Project is not blank
. Action - Set a field's value: Field: Project Manager (BoW Amendments - Primary) Value:
Project Manager (BoW - Secondary) Add Filter: Project_Name (BoW - Secondary) =
Select Project (BoW - Primary)
Currently this is not populating the field when the project is selected in the drop down, any assistance would be greatly appreciated.

Hi Josh,
This should be straight forward. You do not need BOW Amend data connection. You are creating requests in this list so this will be your Main Data Connection.
When creating the rule on the drop down, select Action:
Condition: anytime the value changes, Set a field's value - Project Manager (Main); Value - Project Manager(BOW) where Project[BOW] = Project [Main]
Hope it helps.
Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

Similar Messages

  • Using JavaScript to auto populate a field based on numeric value of a separate drop down field

    Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
    Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
    DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
    0-8: Non-Performer  
    9-16: Low Performer  
    17-24: Performer  
    25-32: High Performer  
    33-40: Exceptional Performer
    DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
    For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
    Any help is greatly appreciated. Thank you in advance.

    If you use a text field, the custom calculation script could be:
    // Custom calculation script for text field
    (function () {
        var s = getField("DD1").valueAsString;
        // Blank this field if input is blank
        if (!s) {
            event.value = "";
            return;
        // Convert string to number
        var v = +s;
        // Set this field's value based on the input
        if (v <= 40 && v >= 33) {
            event.value = "Exceptional Performer";
            return;
        if (v < 33 && v >= 25) {
            event.value = "High Performer";
            return;
        if (v < 25 && v >= 17) {
            event.value = "Performer";
            return;
        if (v < 17 && v >= 9) {
            event.value = "Low Performer";
            return;
        if (v < 9 && v >= 0) {
            event.value = "Non-Performer";
            return;
        // If none of the above fit, blank this field
        event.value = "";

  • CAML query to return multi-user field from a Sharepoint list

    I have a list in SharePoint that contains a field of type Multi-User which can contain 1 to many user names. I'm having trouble returning a string containing anything when more then 1 user is selected in the field.  Can someone point me in the right
    direction?

    You can't query on a Mutli-user field using a "contains" filter - using the GUI. 
    However, you can change the CAML for the query using SharePoint Designer.
    E.g. In my view, I want to return a list of documents where the Contributor field (a multi-user field) contains the user "Warner".
    In the GUI, I create the view, but I'm not allowed to use the filter "Contains", so I use "Equals" instead. Of this won't work unless the only user is "Warner". So I open SharePoint Designer, and I change the query used on that view from Eq to Contains.
    Original query:
    <View Name="{D0E65C04-0A53-4C26-9004-68B3CFF1F11A}" MobileView="TRUE" Type="HTML" DisplayName="Warners Documents" Url="/Shared Documents/Forms/Warners Documents.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=23" >
    <Query>
    <Where>
    <Eq>
    <FieldRef Name="Contributors"/>
    <Value Type="Text">Warner</Value>
    </Eq>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name="DocIcon"/>
    <FieldRef Name="LinkFilename"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Contributors"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    New Query:
    <View Name="{D0E65C04-0A53-4C26-9004-68B3CFF1F11A}" MobileView="TRUE" Type="HTML" DisplayName="Warners Documents" Url="/Shared Documents/Forms/Warners Documents.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=23" >
    <Query>
    <Where>
    <Contains>
    <FieldRef Name="Contributors"/>
    <Value Type="Text">Warner</Value>
    </Contains>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name="DocIcon"/>
    <FieldRef Name="LinkFilename"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Contributors"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    This now works.
    However, the SharePoint team probably put this restriction in place for a reason. Possibly a performance related reason, due to the query performed on the SQL server, so use this method with caution.
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    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

  • How to get only custom fields from a SharePoint 2010 list?

    I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not want to be included. Also this causes some of the fields
    to appear more than once.
    string siteURL = "http:XYZ";
    ClientContext context = new ClientContext(siteURL);
    Web oWebSite = context.Web;
    context.Load(oWebSite);
    context.ExecuteQuery();
    //Get the list by title
    List produktKatalogListe = spLists.GetByTitle("Produktkatalog");
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "<View/>";
    ListItemCollection listItems = produktKatalogListe.GetItems(camlQuery);
    context.Load(produktKatalogListe);
    context.Load(listItems);
    context.Load(produktKatalogListe.Fields);
    context.ExecuteQuery();
    foreach(Field field in produktKatalogListe.Fields)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Is there a way to print only custom fields? This would mean omitting fields like
    internalID, GUID...
    I tried the following:
    if(!field.Hidden)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Unfortunately this not only does not solve the issue but is also not a very good solution for the case I do want to display custom but hidden fields.
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

    The following approach seems to solve the issue. Instead for checking if the field is not
    Hidden I checked whether it is not FromBaseType.
    if(!field.FromBaseType)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • How to auto populating the field in MS crm

    How to auto populating the field in MS crm

    Hi,
    To populate URL of account based on account name please refer this link.
    If you are asking about the address auto populate/complete refer this link
    To Retrieve from other entity and populate the fields, for example on entering the account name in opportunity form the fields from account form like Sector, Region can be retrieved and can be auto populated in opportunity form using Odata as follows.
    Call the function getAccountDetails in onchange event of Companyname. Do not forget to add Jquery and Json in libraries.
    function getAccountDetails() {
        var companyName = Xrm.Page.getAttribute("customerid").getValue();
        if ((companyName != null)) {
            var companyNameValue = companyName[0].name;
            var companyNameID = companyName[0].id;
            var serverUrl = Xrm.Page.context.getServerUrl();
            //The XRM OData end-point
            var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
            var odataSetName = "AccountSet";
            var odataSelect = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "(guid'" + companyNameID + "')";
            //alert(odataSelect);
            $.ajax({
                type: "GET",
                contentType: "application/json; charset=utf-8",
                datatype: "json",
                url: odataSelect,
                beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
                success: function (data, textStatus, XmlHttpRequest) {
                    var result_account = data.d;
                    var name;
                    var Id;
                    var entityType;
                    //replace the fields with the fields on your entity
                    Xrm.Page.getAttribute("new_sector").setValue(result_account.new_Sector.Value);
                    Xrm.Page.getAttribute("new_region").setValue(result_account.new_Region.Value);                     
                error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + odataSelect); }
    Also as another option if you donot wat the java script then you can go for a workflow to poplate, please refer this link:  https://www.powerobjects.com/blog/2013/11/25/retrieving-data-from-a-related-entity-crm-2013/
    Regards, Rekha.J

  • InfoPath Field Promoted to SharePoint Form Library Cannot Edit

    Greetings,
    I have an InfoPath 2013 form with a field named "Form Stage".  It's purpose is to maintain a process stage that is subsequently used by a SharePoint Designer 2013 workflow.
    When the "Form Stage" field is not promoted to the column in the form library, my workflow is able to access and change the field value.  However, when I promote the InfoPath field to the SharePoint form library field, the workflow is unable
    to change that field's value?
    Does this sound correct?
    My goal is to create a state machine type process where the form and workflow work together based on the stage it is in.  What is the best practice approach for accomplishing this?
    Thank you!

    Hi,
    you just have to change your promoted fields in InfoPath to "allow for editing in SharePOint." 
    Go re-publish the form template, and when you get to the stage where you promote columns, you'll need to click on each field individually and check the box at the bottom that allows them to be edited in SharePoint.  Then, your SPD workflows will be able
    to update the fields, but be aware that users will also be able to edit the fields without opening the form itself.  Because of this, I typically set my columns to be "hidden" in the content type so that they show in the views but not on the
    properties page.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Auto-populated ID field?

    Can I create an auto-populated ID field? Trying to create a unique record ID for an incident report form.
    Thanks

    Depends how many responses you anticipate, I therefore realise not ideal, a workaround I have used is;
    Import responses into Excel.
    The Date / Time field, whilst displayed as Date and Time, is in fact encoded.
    By re formatting that column in Excel to, for instance, 'Number' (with no decimal places), you get a code for the day.
    If you format, with decimal places, you get the time code as well. The more decimal places you allow, the more unique (is that English?), the code.
    Just a thought

  • Superfish drop-down menu – built from a SharePoint list not working

    Hi All,
              I required multiple menus and I am following the below url to achieve my task .After following the all the steps I don't get any result.Can any one help me how can I over come from the issue
    http://spjsblog.com/2011/11/06/superfish-drop-down-menu-buildt-from-a-sharepoint-list/
    Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad .

    Hi siddiqali,
    In SharePint, it provides navigation feature which is similar to yours. Have you tried to use it? If not, I suggest you use navigation feature.
    http://blog.incworx.com/blog/sharepoint-2010-tips-and-tricks/global-navigation-drop-down-menus-in-sharepoint-2010
    If the navigation feature cannot match your requirement, there is a solution similar to the function in the blog that you mentioned, you can download and deploy it to your SharePoint.
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010-and-Mega-Drop-Down-Menu-Navigation.aspx
    Deploy solutions in SharePoint:
    http://technet.microsoft.com/en-us/library/cc262995(v=office.14).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Is anyone having spam generated from their contacts list after installing ios6 on iphone4s?

    Is anyone having spam generated from their contact list after installing ios6 on iphone4s?

    You are imagining it.

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • Pre-Populating Text fields from a Data drop down list using SQL Server

    I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself.
    I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information
    I can use to fill in parts the form.
    I have a data drop down list that is dynamically linked to the SQL databass and allows you to select a Project Number from that database, what
    I want to do after this is selected is to automatically populate some text fields with the Project name, Account handler and other fields held in the
    database.
    I've had a look online to see if there is a solution but haven't really found anythig that is similar (although I am new to LC so may have seen it
    and not realised) and my Java is non existant.
    Has anyone tried this and able to point me in the right directions?
    I'm using LiveCycle ES2 version 9.0.0.2 from Creative Suit 5.5 on Windows 7
    Cheers

    Hi,
    Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
    Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
    Any ideas ??

  • Unable to change and re-publish existing InfoPath forms on External SharePoint lists (SharePoint 2013 Enterprise Online and On Premise)

    Hi everybody,
    I really reached the limit of my diagnostic ability... ...please help me!!!!
    I subscribed an Online Sharepoint 2013 Development site to try Business Connectivity Services and InfoPath forms. Using SharePoint Designer 2013 I successfully created an external content type
    and an external list, including InfoPath forms.
    When I use InfoPath Designer 2013 to customize the forms I can open and change them without any problems, but when I try to publish the changes I made I get the following error:
    "An error has occurred. The form template has been published to the server but it can only be opened using InfoPath filler"
    (please note that I changed just an existing label, without adding any new control or new fields).
    If I try to do exactly the same things but with an normal SharePoint list everything works like a charm!
    I noted that the main difference between the internal/external list is that with the internal list the publishing path in InfoPath 2013 is something like:
    https://<sharepointsite>/lists/<listname>
     whereas for the external list is something like the following:
     https://<sharepointsite>/lists/<listname>/item/template.xsn
    Trying to overcome the problem I installed SharePoint 2013 Enterprise on premise using the VM from the Windows Azure Gallery. In this case the error I get when I try to publish with InfoPath
    Designer 2013 is the following:
     The following URL is not valid:
    http://<sharepointsite>/lists/<listname>/item/template.xsn
    and of course everything works fine with InfoPath Designer 2013 and regular SharePoint lists.
    Even if I believe the problem is in general with external list and InfoPath, my external list is based on a the "Product" table from the "AdventureWorks2012" sample database
    installed on SQL Azure and connected to SharePoint via Business Connectivity Services.
    A big
    thanks in advance to anyone who is able to
    provide useful information to solve the problem!!!
    Regards,
    Fabio

    Hi Folks,
    Same issue here for any external list. We've migrated from 2010 to 2013 - it used to be fine on 2010. 2013 seems hang after 'getting site column information' then nothing. All effected users can quick publish to regular sharepoint lists, but cannot to external
    lists.
    In our situation we are trying to quick publish to sites using the 2010 look and feel in a 2013 environment. using SharePoint Designer 2013 and InfoPath 2013.
    Rich
    Rich Burdes

  • Filling a content type field from an existing list

    I have a question about populating a new document with data from an existing list.
    We have a list with customers containing the name, address and email for every customer.
    I created a document library for letters and invoices with a document type connected to it. The document type uses a site column with a lookup to the customer name.
    In the document template I created the field corresponding to the customer name, so if it is changed in the DIP the customer name shows in the document itself.
    My challenge is that I would like to also fill in the address and email automatically for the customer name that is chosen.
    When I created the site column I was able to select 'add a column for these extra fields' so I am able to put them in the template, but they will not auto fill.
    Is this even possible?

    Hi,
    I got the same result as yours, and I don’t think we can display the additional fields in the DIP (as I don’t support Office, I’m not sure it).
    They are all belong to the lookup column, we could not fill any values.
    Just as we upload a file into the library, it also not display the additional fields.
    What’s more, if it could display the additional fields in the DIP, we also could not add any values to the additional fields.
    But, although the additional fields not display in the DIP, but when we select a value from the lookup column, it would auto fill the value for the additional fields in the library when we save the file.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Read appendix in position

    Hello! In the PPOME you can create an appendix for the position objtyp=S. Where is this appendix saved? How can I access the document? I want to write a report where I read the appendix from position out. Can anybody please help me?

  • Benefits of high availability

    Please let me know the benefits of high availability. Actually i have 2 machines with good spec.. I wana install oracle 10g infrastructure & middle-tier on both machines having o/s windows 2003 server. where will High availability use and what will b

  • Adobe Flash Player installation version for  Galaxy Pro 10.2 notebook

    Which archived version of the adobe flash player do I install for a galaxy pro 10.2 notebook?

  • What is the best case to get for the iPhone 4S?

    For a black 16gb on sprint

  • Make a backup

    Today I suddenly wasn't able to login with my account to my iCal, Mail or Adress book services. I have other users that could but when I tried it said that it didn't accept my password. I've tried to reset it to another but it didn't do anything. Sti