If Statement based off of a dropdown - InfoPath Dev
in

InfoPath Dev

If Statement based off of a dropdown

Last post 05-10-2012 02:38 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-10-2012 11:45 AM

    • stwp86
    • Not Ranked
    • Joined on 05-10-2012
    • Posts 7

    If Statement based off of a dropdown

    Hey everybody,

    New to InfoPath (working on 2010), and I was suprised to find that there doesn't seem to be if logic functionality built into the tool.  I was looking for a little help, here are the details of my dilemma:

    I have a form that contains a dropdown (Team) for example purposes let's say the values are:

    a - I want this value to equal 12

    b - I want this value to equal 823

    c - I want this value to equal 12

    d - I want this value to equal 60

    e - I want this value to equal 823

    f - I want this value to equal 823

    I have added a text field on my form, and what I would like to do is when someone select "a" from the team dropdown, populate "12" in that text field, if "b" is selected populate "823" and so on.

    I cannot seem to figure this out, any help is greatly appreciated.

    Thanks!

     

    Filed under:
  • 05-10-2012 02:38 PM In reply to

    Re: If Statement based off of a dropdown

    You could use rule conditions -- but it would probably be easier if you used a secondary data source for your drop down that included the value you want to set your other field to. I'm attaching a simple sample - download it, then right click the saved file and select design to open in design mode. From there, you can preveiw, and select an option from the drop down control, and it will set a value in the text box.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.