Cascading dropdowns in infopath 2010 form

Hi,
    I want to create an infopath form with 2 drop downs in it such as one contains (Parent) all the states. Upon selecting one state the other dropdown should get populated by the corresponsing cities.
I have created 2 lists already, states(Parent) and Cities(Child) with a lookup column in the Cities list fetching the statename from the State list.
But not getting exactly how to connect the 2 dropdowns in Infopath 2010.
Any one with any suggestion

Hi spad, you should have both the state and city in the same list. Check out this link:
http://blog.erikvl87.nl/2010/10/how-to-create-a-cascading-drop-down-list-in-sharepoint-2010/
cameron rautmann

Similar Messages

  • Is possible to capture the SP username of who is making submission of the data from an InfoPath 2010 form?

    Hi all,
    Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
    before to push that data to an sql server.
    Any suggestion , book reference , link is acceptable 
    thanks in advance
    CRISTINA& MICROSOFT Forum

    Hi Cristina,
    Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
    http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
    http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
    http://henry-chong.com/2010/12/infopath-validation-gotcha/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Filtering a sharepoint 2010 list using Multiple values from Multi-Select Filtering In Infopath 2010 form

    I am creating a browser based InfoPath 2010 form Calendar Filtering
    using SharePoint 2010 Calendar List (All Events) and InfoPath 2010.  This form has data connection to the Calendar list. Goal is to
    compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
    Select Year  and Select Week. I also have common drop down called
    Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
    I am able to filter the list based upon Year and Week
    on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
    Year and Week. Or it needs to show all the values if I
    select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
    Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
    Thanks
    Snehal H Rana
    Thanks Snehal H.Rana SharePoint Consultant

    I am creating a browser based InfoPath 2010 form Calendar Filtering
    using SharePoint 2010 Calendar List (All Events) and InfoPath 2010.  This form has data connection to the Calendar list. Goal is to
    compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
    Select Year  and Select Week. I also have common drop down called
    Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
    I am able to filter the list based upon Year and Week
    on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
    Year and Week. Or it needs to show all the values if I
    select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
    Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
    Thanks
    Snehal H Rana
    Thanks Snehal H.Rana SharePoint Consultant

  • Export/Convert Browser Based Infopath 2010 forms to PDF/Excel/Word

    Hi,
    Is there an OOB, way of converting browser based Infopath 2010 forms to PDF/Word/Excel.
    In case there isnt, can anyone please point me to a coded or a programmatic way of implementing the same. 
    Soptik Dutta

    Hi Soptik,
    As far as I know, we can only save an InfoPath form as PDF/Excel using InfoPath Windows form application(rather than Broswer-based InfoPath).
    In this case, we can
    Open the library that save the forms
    Selec the form that is wanted to be PDF/Excel(Just select it, don't open it)
    Click the "inverse trangle", and then click "Edit in Microsoft InfoPath"
    In InfoPath, click "File" > "Save & Send" to save the form as PDF/Excel
    In this following thread, there are some code snippets, which will help you to export an form to PDF using custom code:
    http://www.infopathdev.com/forums/t/8746.aspx?PageIndex=1
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jinchun Chen
    Jinchun Chen
    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 tnmff AT microsoft.com(Please replace AT with @)

  • Migrating InfoPath 2010 Forms(Lists/Libraries) to InfoPath 2013

    Hi All,
     We have lots of InfoPath Forms in SP2010 and migrating to SP 2013. It would be helpful if anyone could suggest a suitable way to migrate the Forms. 
    Trying to avoid external tools just planning to inhouse.
    Thanks,

    Hi,
    According to your post, my understanding is that you wanted to migrate InfoPath 2010 Forms(Lists/Libraries) to SharePoint 2013.
    The issue is caused by the security and Claims-Based authentication.
    There is a new Secure Store Service ID that needs to be created to allow InfoPath to connect over Claims Based Authentication
    Here is a great blog for your reference:
    http://thatssharepoint.blogspot.com/2013/12/issues-with-infopath-forms-after.html
    More information:
    InfoPath and SharePoint 2013 – Upgrading your forms
    Migrating InfoPath Forms Services applications from 2010 to 2013
    Thanks,
    Linda Li
    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]
    Linda Li
    TechNet Community Support

  • InfoPath 2010 form parsing error with 3600 execution timeout value in SharePoint 2010

    Hi,
    I have a list in SharePoint 2010 with 100 columns where 25 of them are calculated columns. This list is designed by InfoPath 2010 with two secondary data connections to pull a few data from another two lists. There are 25 set value rules with the submit
    button in InfoPath from. At present, the list is containing around 1000 items.
    The problem is, when I published the InfoPath form it throws an error:
    The SOAP message cannot be parsed.
    In fact, the execution timeout is set to 3600 in config file. When I delete items from the list and keep it around 700 the InfoPath form publish then.
    Could somebody tell me why this problem and what is the possible solution.
    Thanks in advance.

    Hi pointtoshare,
    According to your description, my understanding is that you got an error when you published InfoPath form.
    Please modify the web.config file like :
    <location path="_layouts/UploadEx.aspx">
         <system.web>
           <httpRuntime maxRequestLength="51200" executionTimeout="300" />
         </system.web>
       </location>
    And modify the <securityPolicy> section like :
    The web.config file is in C:\inetpub\wwwroot\wss\VirtualDirectories\spwebappname.
    There is another reason for this issue, please take a look at :
    http://www.heyweb.net/2011/07/infopath-the-soap-message-cannot-be-parsed/
    Here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/ea8da113-fe9a-4878-9994-c1f24cc85c37/soap-error-when-publishing-infopath-form-to-sharepoint?forum=sharepointcustomizationprevious
    http://sharepointshah.blogspot.in/2012/11/soap-message-cannot-be-parsed-error.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Hide/Show items in Multiple selection in InfoPath 2010 Form

    I have an I an InfoPath 2010 browser enabled form with four sections. Inside each section is  a checkbox and a textbox
    What I need to do is, have a user select a desired items by checking the checkBox and the items that are not Checked are hiden. They can select (Checked) all the four CheckBoxes. I am using rules but can't seems to get this working. Any help will be appreciated.
    Ebenezer

    Ok, here is how you have to do , use expression as I mentioned in my previous post, and then use a condition like this
    (../my:group1/my:field1 = string(true()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(false())) or
    (../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(true()) and my:field6 = string(false())) or
    (../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(true()))
    here I am checking for all three fields, if either of these is true then it will hide other section
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to Prevent duplicates on Combination of Lookup columns in sharepoint 2010 using infopath 2010 form.

    Hi All,
    I have list with some Lookup columns like  City, Pin, and Text Column Name. All these are required columns.
    Now I want to prevent duplicates while submitting InfoPath form if a Combination of  City,Pin & Name. (like a Composite primary in Database is used.)
    Can some one help me on how to achieve this using InfoPath  2010 Rules, writing  rule in Xpath.
    Thanks in Advance.

    1. Add a secondary data connection to the list where the form will be submitted.
    2. Prior to submit via rules, set the query fields in the above connection: City, Pin & Name with values entered in the form. Query the data source and check if the result has values.
    3. Show error messages accordingly if exists else continue with Submit.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Getting Prompt for Credentials When Opening InfoPath 2010 Form in Sharepoint 2010

    I have a domain user who runs Office 2010 x32 and uses a Sharepoint 2010 site daily. Lately a specific page on that site has been randomly giving prompts for credentials when opening existing documents and creating new ones. The process can be most easily
    replicated by opening the new document template in Infopath by going to Documents -> New in the ribbon bar of the SP page. Most of the time the Windows credentials for the user are passed to Infopath/Sharepoint automatically (which is normal), but on the
    fourth or fifth attempt to create a new form, the prompt appears. The user can still enter the credentials and open the blank template form, but a prompt should not appear. The user is also the administrator for that page, so I'm thinking it's not a permissions
    issue.
    The user is running IE 9 on Windows 7 Pro x64. I have performed the following:
    Reset advanced IE settings and all user cache data
    Cleared cached Sharepoint credentials in Windows credential manager
    Re-applied group policy for the machine using gpupdate /force
    Logged in with a clean temporary profile
    Logged in to another domain account using the user's Sharepoint credentials
    Cleared Infopath cache
    Re-installed Office 2010 x32
    The problem only occurs only on this particular machine. There are no Sharepoint or authentication-related errors or warnings in the application and system event logs. There are also no error messages on-screen when the prompt appears. I also considered
    the possibility of this being a performance related issue in the case that maybe Infopath was taking too long to start, causing the credential pass-through process to time out and fall back to a prompt. I ran disk cleanup, deleted some temporary files, and
    checked for excessive CPU/memory load. I didn't find any issues and doing these things did not help.
    I'm convinced there is another setting somewhere in Windows that is causing this. Interestingly it always happens after four or five attempts, never the first time. Can someone point me in the right direction?

    Hi Titan, this sounds like an IE security setting issue. Things to do:
    1. In Internet options>Security>Local Intranet, make sure "Enable Protected Mode" is not selected.
    2. Under Sites>Advanced, add https://*.sharepoint.com (and make sure "Require server verification..." is not checked).
    3. Under Security>Custom Level, scroll all the way to the bottom and make sure "Automatic logon with current user..." is checked.
    cameron rautmann

  • Printing InfoPath 2010 Forms

    Hi all,
    This is probably really easy but I can't seem to get the "Print" option to appear in an InfoPath form under SharePoint 2010.
    This used to work out of the box in InfoPath 2007 but for some reason does not appear in 2010. Does anyone have any advice?
    Thanks

    I wouldn't say you're going about it in the wrong way - it's just that this is brand new functionality that can easily be confused with the full-blown use of InfoPath.  In 2007, we couldn't customize list forms with InfoPath - that is an awesome new feature of 2010.  What may be confusing is that you started in InfoPath.  Typically, you would create the list the way you want it in SharePoint, and you would add columns to it that were created at the site level or even site collection level.  That way, the columns are usable all over SharePoint and not just in your list.  Then, after you've gotten the list created and ready, you click on "Customize Forms" from the ribbon, which allows you to immediately convert all the built-in ASPX forms into InfoPath forms that you can then modify and spruce up to your heart's content.  There is a fundamental difference in these two approaches.
    If you built the list form template first, and create the list + columns from this direction, then you do not get the same administrative controls for determining the exact nature of your list nor the columns.  Columns should be carefully planned not just for the list but for your entire site and site collection.  If you create the same column over and over again, then you aren't utilizing the robust nature of SharePOint.  I know it seems cool that you are creating these lists by starting in InfoPath, but you aren't really creating Expense forms and Time Off forms.  You are creating lists that you simply get to modify the look and feel of with InfoPath.  The built-in forms of a list do this, too, except the built-in list forms are not nearly as capable.  You can't design the layout and graphics of a built-in list form, and you can't add in custom logic or other data connections with built-in list forms.  InfoPath forms can do this, and so can list forms customized with InfoPath, but it's not the same thing as if you built a regular InfoPath form and submitted to a form library.  When you do that, you actually have a full-fledged FORM with a document (XML) that stores your data.  The list version is just using InfoPath as a beefed-up front end, but in the end, it's just a list item in the content database, not an XML form.
    Typically, for expenses, time off, timesheets, etc., you would have a full-fledged form where someone goes to a form library, fills out the form, submits that physical XML form back to the library, and you have full functionality and capability of InfoPath (browser or rich client - either way).
    I think it's important to also point out that Beta will not have an upgrade path to RTM, so don't build more than you're willing to rebuild after RTM release.  Also, browser forms utilize Forms Services, which is only available in the Enterprise version.  Be sure you plan to purchase, license, and implement the full Enterprise level of 2010 when going this route with testing.  Just a heads-up on those things!  I will be doing Enterprise all day long, so I'm with ya!  =)SharePoint Architect || My Blog

  • Multiple file attachments in InfoPath 2010 Form

    I need to attach at least 10 files in an Infopath form and it submits to a form library. is there any limit for attaching multiple files in a form and how can i increase the size for multiple File Attachments in Central Admin?

    Hi fadnan,
    For every web application, the document upload limit is the combined limit of all attachments that can be added to a list item. This is in the General settings for your web application in Central Admin.
    In case of Infopath forms, it depends upon user session. You can view this setting in Central Admin > General Application Settings > Infopath Forms Services > Configure Infopath Form Services. Scroll down to User Sessions.
    By default "Maximum size of user session data" is defined as 4MB but you can increase this limit to upload larger files. Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Using jquery to user only allow numbers in single line text field with infopath 2010 form

    Please provide me right solution for the same.
    I have already used below script, but this is not working
    <script type="text/javascript">
        $(document).ready(function () {
      var input = document.getElementById('ctl00_m_g_85322960_0783_4665_a3e7_41708ddd7c1c_FormControl0_V1_I1_T3');
    input.onkeydown = function(e) {
        //var k = e.which;
        /* numeric inputs can come from the keypad or the numeric row at the top */
         if (e.shiftKey || e.ctrlKey || e.altKey) {
    e.preventDefault();
    } else {
    var key = e.keyCode;
    if (!((key == 8) || (key == 46) || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105))) {
    e.preventDefault();
    </script>

    Hi,
    As Matt mentioned, it is OK to change field type to number if you want only number can be entered in the textbox. If you want to treat them as string in the backend, you can use CONVERT function to change its data type in the code.
    If you insist on jquery, try to change condition paremeter in IF to:
    key >
    31 &&
    (key <
    47 ||
    key > 57)
    The order number of numbers (0 ~ 9) is from 48 to 57 (in Dec).
    Miles LI TechNet Community Support

  • Infopath list form displays blank in edit mode in SharePoint 2010

    Hi,
    I have a custom list in SharePoint 2010. I am using InfoPath 2010 form to Insert and Edit list data. The list was working fine in the past days. Suddenly the InfoPath form displays nothing when I click on the Edit Item Button but its working fine in New
    Item and Read Only mode. I checked Form Web Parts--> Content Type Forms--> (Item) Edit Form where the InfoPath form Web Part is missing. I added the InfoPath Form Web Part manually there then the InfoPath form displaying blank where
    list data is available. All other lists are working fine in the site collection. 
    Would somebody help to resolve this issue?
    Thanks in advance.

    Hi pointtoshare,
    When you added a new item in the custom list, whether this issue occurred.
    Whether you could customize the custom list form using InfoPath.
    Please click on “Customize Form”, it will be opened with InfoPath, check whether the default view has data. And create a new view, set it as default view, publish it , compare the result.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I have a infopath form and i want to publish this form using powershell script(No central admin usage) and i am using Infopath 2010.

    How to publish infopath form using powershell script in infopath 2010?
    Is any approach for such solution.

    Hi,
    Try below command:
    Uninstall the existing solution (based on the from file name):
    Uninstall-SPInfoPathFormTemplate -Identity Exampleform.xsn
    Install the new solution (based on the from file name):
    Install-SPInfoPathFormTemplate -Path C:\Form.xsn
    Disable feature on site collection level
    Disable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site http://SPSite
    Enable feature on site collection level
    Enable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site "http://SPSite"
    See this blogs for your ref:
    http://rgielen.blogspot.in/2010/11/deploy-infopath-2010-forms-with.html
    http://mysharepointwork.blogspot.in/2010/09/deploy-infopath-forms-with-powershell.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Why does text field in InfoPath 2010 show user name with two commas between first name and last?

    Here's the problem. I have a text field called Manager in an InfoPath 2010 form that is getting populated by a drop down field called
    Business Unit.
    The Business Unit drop-down field is pulling information from
    column A in a custom list via a managed data connection. The custom List has two columns:
    Title & Manager. 
    The Manager column in the custom list is a 'Person or Group' type column.
    The Data Connection pulls both the Title, Manager
    (and ID) data.
    There is a rule on the Business Unit drop-down field to change the value of the
    Manager text field with the Manager data on the custom list. The rule pulls the
    Manager information and filters the value to match the
    Business Unit on the Data Connection with the Business Unit drop-down
    field value (Main).
    The Business Unit drop-down field works great and pulls the value from the custom list, and the rule populates the Manager text field. The problem is that Manager text field shows the name as such:
    [smith,, john]. Notice the two commas between the last and first name. There should only be
    one comma!
    Anyone have an idea why the text field is appearing with two commas?
    Arnel

    Hi all,
    I have a workaround for this. I have an InfoPath 2010 form pulling data from a SP2010 list. The user chooses a System (Business Unit) from the dropdown list and that choice auto populates the associated user (Manager) for that system. I had to
    use concatenation, substring before and substring after to display the correct data.
    concat(substring-before(DisplayName, ",, "), ", ", substring-after(DisplayName, ",, "))
    DisplayName is the original data for the field. I am able to cut & paste this field into the formula. Therefore, I added a few spaces to separate it from the actually formula for future use.
    Select Insert Function
    Select concat
    Select the first link to double-click to insert field
    and then select Insert Function
    Select the Text category and choose substring-before
    Select the third link to double-click to insert field
    and then select Insert Function
    Select the Text category and choose substring-after
    Copy and paste your fieldname (in my case DisplayName) in the
    double-click to insert field
    parts of the substring-before and substring-after links.
    Delete the middle double-click to insert field link
    Add quotes, spaces and commas so that they match the following format:
    concat(substring-before(DisplayName, ",, "), ", ", substring-after(DisplayName,
    Translation:
    concat(substring-before(Doe,, John, ",, "), ", ", substring-after(Doe,,
    John, ",, "))
    Bring together all of the text before ",," (i.e. Doe) with ", " (comma, space) and all text after ",," (i.e. John).
    It should return
    Doe, John.
    I hope this makes sense. I have these instructions with screenshots if you need them, contact me.

Maybe you are looking for

  • Analog audio to digital software

    Any suggestions on a software to transfer from an analog cassette tape to digital. I have a converter box, just no software.

  • T400 WWAN Adapter Issue

    I've successfully utilized WWAN capability on a T400 for a long time. So, now it's not working all of a sudden??? Device Manager says "Device Working Properly", radio is visible along with Wi-Fi and Bluetooth. Just doesn't show Broadband connections

  • Is flash playing?

    I have spent a lot of time trying to find out if it is possible to detect if a flash 8 file is playing or if it has stoped. Basicly I need a property (boolean) in the MovieClip class like "isPlaying". In earlyer versions of flash I have extended the

  • CSS Dropdown Menu Issue in Contribute

    Hello everyone, My name is Boris and I have these question related to the Adobe Contribute. I'm working on a client web site where there is a CSS drop down menu that works in all the browsers. Which works perfectly in all the browsers without use of

  • HT5544 How do I sync iBooks on iOS devices when I create an ebook using iBooks Author?

    How do I sync iBooks on iOS devices when I create an ebook using iBooks Author?