Defaulting a dropdown to the first item in the list

I have two dropdowns in InfoPath 2010. The second dropdown gets populated depending on what the first dropdown is set to.
Example: If the first is set to Florida, the second will display all the cities in Florida. If you set the first to Georgia, the second will change to a list of cities in Georgia.
The problem is that it defaults to a blank line, I need the first item in the second dropdown to populate with the first item in the list.
I've scoured the web but I can't seem to find a solution.
Any solutions or workarounds?

Hi,
To achieve your requirement,  creating cascading dropdown fields with InfoPath.
Please refer to the following blogs about creating cascade drop down in InfoPath form step by step:
http://blogs.msdn.com/b/bharatgupta/archive/2013/03/07/create-cascading-dropdown-in-browser-enabled-infopath-form-using-infopath-2010.aspx
For the issue that second dropdown defaults to a blank line, add a formatting rule to the first dropdown. Refer to the following articles:
http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support

Similar Messages

  • First item in dd list indented in IE

    Hello
    On a few pages of a redesign I am doing I have a few
    <dd><li> - In FireFox its fine but in IE it is
    indenting the first item in the list.
    Any suggestions on how to fix? I looked in all my CSS and Im
    not seeing anything.. ( should I look harder?)
    Here is a page of a good example
    http://www.michaelsondesign.com/roomNine/html/aboutUs/parent_involvement.htm
    thanks
    R

    On Tue, 18 Sep 2007 18:41:03 +0000 (UTC), "NeilPeartRocks"
    <[email protected]> wrote:
    >Hello
    > On a few pages of a redesign I am doing I have a few
    <dd>
    - In FireFox its
    >fine but in IE it is indenting the first item in the
    list.
    > Any suggestions on how to fix? I looked in all my CSS
    and Im not seeing
    >anything.. ( should I look harder?)
    > Here is a page of a good example
    >
    >
    http://www.michaelsondesign.com/roomNine/html/aboutUs/parent_involvement.htm
    >
    > thanks
    > R
    >
    Definition lists - at least as I read it don''t just have
    <dd>'s as
    you have:
    Definition lists have a <dt> to define the definition
    term and then
    the <dd) to describe the definttion description. so it
    would look like
    <dl>
    <dt>the term</dt
    <dd>definition description</dd>
    <dt>the term</dt
    <dd>definition description</dd>
    <dt>the term</dt
    <dd>definition description</dd>
    </dl>
    but to change the indent - you can change the margin with
    css:
    dd {margin-left: 5px; margin-top:5px; margin-bottom:18px; }
    ~Malcolm N....
    ~

  • Galleries - default to first item in list

    I am working on a trade show app using Siena. I have a number of product galleries that load from excel, but I am having trouble getting the galleries to default to the first item in a selected list. Instead, if I select a new gallery, it starts on the last
    position viewed by another gallery instead of starting clean on first item.
    I thought it has something to do with DefaultVisibleIndex, but I have had no success. Any help would be greatly appreciated.
    Rojon123

    Hi Rojon,
    In your dropdown list control, set Behavior>OnChange property to: UpdateContext({index:5});UpdateContext({index:1}). You're setting a context variable named index to 5 and then 1--basically cause its value to change every time the selection in the control
    changes.
    Now, set the DefaultVisibleIndex property of your gallery to: index
    Thanks
    Robin

  • How to get first item of hashMap w/out knowing the key

    Hi
    can someone tell me if there is a way to get first item from a hashMap when you dont know what the key is. as the get method expects a defined 'key'
    reason I am asking this:
    I am using struts 2 UI <s:radio> tag. this tag takes a hashmap and creates radio maps. it has a 'value' attribute and if something is passed to this attribute then that radio button is checked by default. the list that contains radio buttons is created dynamically so i dont know what is actually in the hashMap key's. but i do know that key's are string.
    so just wondering if there is a way to get first item from a hashmap without knowing the key...

    thanks for the quick reply.
    posted in java forums because thought it was a java API/workaround question. gave a little history because i didnt want people to start questioning my use of HashMap for this purpose..
    anywhose..i've found a workaround.
    If someone has a similar problem:
    as the hashmap is being populated dynamically....set a String member of class to contain the first key thats being put in the hashmap. then have struts tag pick up that value.
    also, through your post and reading hashMap api...its usefull to know that hasMaps do not gurantee the order of elements in it. So now I am using a TreeMap.
    Thanks

  • Get the first item value of previous record in a multi record block

    Hai,
    I have a multi record block with four items.I should get the first item value of the previous record so that I can increment its value in the current record.
    Thanks.........

    If you want a distinct value in each row or to be able to retrieve the records in the same order they were written then you should use a sequence.
    If you want to retrieve the records in the same order they were created in the block then you will need a diffferent solution to the one you outline here since a user could enter a new record between two others.
    I posted this a while back in response to someone who was using a sort_key item and resetting it for each row when a new record was inserted:
    If you make the sort_key bigger then you have much more room to insert new rows in between existing rows without having to reset all the sort_keys.
    Eg. you have rows with sort_keys of 129282000000000000 and 129283000000000000 (you can have more zeros if you want) and you want to insert a row in between. if you're using oracle forms then the user would have to click on the first of these rows and then do 'insert'. in your insert process you would store the sort keys of the current record and the one below, create a blank record in between and set the sort_key of that record to the average of the other two. you will be able to insert many new rows in between the original 2 before running out of space in the sort_key field.
    the method above is not sufficient, there are some other cases to consider:
    1) when the user is on the last record of the block then you will just create a new record with sort_key set to a greater number than the row before. you can have the sort_key defined as number(38) and to safely allow you to enter 1000 rows each new row would normally be 10E33 greater than the previous one.
    2) when the user is entering the first record then just set the sort_key to 10E33.
    3) on the off-chance that you do insert a great number of records and cannot insert another in between then you would need to alert the user, process the records so that the sort_keys are evenly spaced and requery the block. this processing could be scheduled nightly to make this eventuality even less likely.
    4) make sure the user cannot run the default 'clear_record' procedure. this would break my method as well as yours!
    James.

  • Navigate to the first item in a updatable report

    on my page i have a master/detail form. When a new detail - record is created, the cursor navigate to the first item on the page => it is the first item of the master! What I have to do, that the cursor navigate to the first item in the new detail-record ??
    Thanks
    Robert

    Hi Andy,
    thank you for your answer.
    When the program start, I can not find the cursor. I think, I have a problem to reference the item in the updatable report. I wrote the following lines:
    <script language="JavaScript1.1" type="text/javascript">
    alert('Vor Cursor Navigation');
    first_field('#FKOM_RUFNR#');
    </script>
    (FKOM_RUFNR is a column of the select statement in the report!!)
    A second problem: The cursor navigate to the field - first_field('FIELD_NAME') - every time. But the cursor should navigate to the field in the updatable report, if the button "ADD" in the region of the updatable report was clicked. If the page was displayed without clicking the ADD - button, the cursor should navigate to the first item in the master form ( like => Cursor focus: first item on the page). How can I do that ??
    Thanks
    Robert

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Since I upgraded my Ipad2 with IOS6, i keep getting kicked out of Safari after I am in the middle of looking for something and on Ebay it continually kicks me back to the first item if I click to see a picture, say after I am 150 items down.  Even CNN too

    Since I upgraded my Ipad2 to IOS6, I keep getting kicked out of Safari after I am in the middle of searching for something.  Also, Ebay kicks me back to first item if I click on an item, say number 153 or 642!  Very annoying.  Even CNN kicked me out back to Ipad home screen last night!  How do I make it stop???

    My question is this:
    What is the best way of getting the pictures out of the iPhoto Library? I
    Select the photos you want out and export them as JPGEs - kind = current for the current edited version - kind = original for the original
    f I get access to the original folders within the library by right-clicking any photo and then being able to browse inside the library, am I going to have any problems if I copy or move those original pictures directly to a folder outside of the iPhoto Library?
    Copying photos out will not be a problem if you make no errors - for me that is not a good bet - it is best to stay out of yoru iPhoto library
    Would it be better to export the pictures?
    Yes
    Does exporting using "current" under "Kind" give you the original more safely?
    No - it gives you the current version which may be the original if no changes have been made or will be the current edited version if edits ahve been made
    Also, any suggestions on how to best have photos OUTSIDE of an iPhoto library organized so that iPhoto can reference them, but your backup is also organized?
    In the iPhoto preferences un check the advanced preference to "copy imported items to the iPhoto library"
    HOWEVER - this is not recommended - it makes importing more complicated, deleting more complicated and makes replacing a hard drive or going to a new computer much more difficult - and it puts you totally in charge of your original photos - being sure that they are there and do not get moved
    I'd like to have my photos organized by date in the backup as well, so that I don't have to backup all my pictures every time I add new ones, just add the latest to the backup drive.
    Finally, any suggestions on what to do with pictures that you scan so that they appear by the date they were taken as opposed to the date they were scanned? Is there a way to modify the date of the photo info?
    Select the photos in iPhoto and use the batch change command under the photos menu - the tiem and date option
    LN

  • Focus on first item on the page

    Allthough I have this setting activated for my login page and my first item is user name, the focus is set to password. Is there anything I forgot? Funny enough, on one of my other applications works right.
    Denes Kubicek

         What is the difference between these ways:
    onLoad="html_GetElement('P101_USERNAME').focus();"
    And
    <script type="text/javascript">
    first_field('P101_USERNAME');
    </script>
         For some reason, I was able to set the focus by using the second method, but never success on first. Could you or someone to help me undsertand what the
    possible reason is. What I did is : set Cursor focus to <b>do not focus cursor</b> and put onLoad="html_GetElement('P101_USERNAME').focus();" into Page HTML Body Attribute.
    I am also check the #ONLOAD# on my page template .
        Another question is: I have an item on a page which is a text field. It's focused every time page is loaded. but I put a "onChange" event on this item which calls a
    confirm message box. If "Yes", then submit the page, If "No", clear the item and set the focus on the item again. I am having trouble to have the cusor re-focus on
    the item again. Anyone could help. Thanks in advance for the help. Here is the code I put at page attribute;
    <script language="JavaScript1.1" type="text/javascript">
    function test(form){
       var conmod = confirm("Are you sure you want to submit");
       if (conmod == true)
          doSubmit();
       else
       form.P2_BE.focus() ;
       form.P2_BE.value='';
    </script>
    I am using version 1.6
    Regards,
    Ran

  • ADF Faces: How to autoselect the first item in a af:table ?

    Hi
    I want <af:table> to autoselect the first item in the set (if there is at least one item). I'm looking for a programatic way to do it, but haven't found a solution.
    Any suggestions?
    TIA,
    Brian

    There is no declarative way of doing this.
    The java apis to do this are...
    call...
    table.getSelectionState().clear()
    table.setRowIndex(myIndex);
    table.getSelectionState().add();

  • Always first item from the punchout catalog will get missed in SRM cart

    Hi All,
    Recently we have configured the vendor punch-out catalog in our SRM system. We are able to get in to their catalog and able to select the items. However we have observed the following.
    1) When we select 3 items from the list we get only 2 items in to our cart.
    2) When we select 4 items we get only 3 items to our cart
    It is noted that always the first item selected will be missing when comes to SRM shopping cart.
    We have debugged the Badi BBP_CATALOG_TRANSFER and observed in that only 2 items are entering in to SRM server in the first case and 3 items are entering in to SRM server in the second case.
    One more thing observed that when we select only one item in the catalog, that comes to our shopping cart without any issues.
    Can any body help me in this, is this issue with vendor side or can there be an issue at our SRM server.
    Thnaks
    psamp1

    I take it that you checked the CATALLOG_CONTENT table? Does the table CATALOG_CONTENT_ERRORS have any errors posted?
    Checking if the error is at the vendor site:
    Check the source code of the vendor just before the shopping cart is returned to SRM. Sometimes it's easy, just right-click in your browser and click 'show source'. This opens the source html of the page. Search for "NEW_ITEM" and see if all products are there.
    The difficult thing is that sometimes the vendor catalog uses a self-posting form. Timing is important then. Right after you click press the escape key, this stops your browser from continuing. Now do the above again.
    Things you can bump into: you're too quick, there is no form with the NEW_ITEM lines. You're too slow: you're back in SRM already. So if it doesn't work at the first try, try again.
    Check all the NEW_ITEM lines and see if the first item is missing there.

  • Why is the First Item Moved by a Rule is Grayed Out

    Howdy,
    When rules are applied to move e-mails from my Inbox to some other folder the first item in any of those folders is either grayed out and not listed as new or has the Junk Mail Flag set even though Mail doesn't think it's junk mail (i.e., the thimbs down button is active rather than the thumbs up button to reset to not junk). This is with Mail in 10.8.1.

    Hi,
    For this issue, I would suggest you update to the latest printer driver, if you have any other related printer\scanner programs installed, please make sure that you have the latest version or reinstall as a test.
    It's recommended to contact the manufacture for members there are more familiar with this product
    Brother Support
    http://www.brother-usa.com/askus/#.VA_jdFscSM8
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • How can i show the first item in the list as selected item

    Aslam o Alikum (Hi)
    Dear All
    How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
    Take Care
    Allah Hafiz

    Hi!
    You can set list "initial value" using When-Create-Record trigger.
    I.g.
    :<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1);

  • On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being directions from here, the right click does work on Google map when using Safari

    On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being "directions from here", the right click does work on Google map when using Safari

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Windows Explorer - How to select the first item once we open the explorer?

    Hi,
    In Windows Explorer - How to select the first item once we open the explorer using keyboard shortcut. I typically use downward arrow, it goes to the 2nd item in the list, then I again have to use upward arrow to go up.
    Is there a shortcut to select the first item in the list using keyboard? This is not specific to Windows 7, it has been the behavior even in previous Windows OS versions.
    Thanks,
    Mallik

    Opening a Microsoft Ticket is probably your best option. Unfortunately the change will not happen immediately and it will require multiple users to send in a ticket. I hope this ends up being resolved though.
    Good luck Mallik
    Also, don't forget to mark the post as answered so that it does not show up as unanswered to help others who search the forums.
    Agreed, MS wont change it easily. :)
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

Maybe you are looking for

  • Additional instruments won't download

    I have Lion (10.7.3) and the latest Garage Band (6.0.5). I've had Garage Band installed for a long time. I went to try it out today, and would like to install the software instruments that (apparently) aren't included on the DVD anymore. When I click

  • Paste in Place in Photoshop CS6 is not working, am I missing something?

    Hey there, I've been using the Creative Suite since CS4, but still count myself as a beginner. I'm building a psd file with vectors from an ai file. I recall that in CS5 and CS5.5 I had no issue copying a vector from Illustrator and then using "paste

  • How can we get Sun Ray DHCP address in Windows XP?

    We need the DHCP address (served by Windows) of our Sun Rays as a variable in our Windows XP session (served by VDI 3 / vBox 2.0.10). Customer wants to use this for a windows script which maps the room printer to the Sun Rays Windows XP session. So t

  • Need help for SB Live

    Need help for SB Li've CT4850 driver for windows 7. Thanks

  • Camera raw sous PSE 9 pour Nikon D600

    Bonjour, Votre site indique qu'il faut la version Camera Raw 7.2 pour le Nikon D600. est-ce valable pour PSE 9 car je n'ai pas Photoshop CS ? d'autre part, vous ne proposez au téléchargement qu'une version 7.1, qui est signalée ne couvrant pas le Nik