Select Lowest value from set of option buttons - InfoPath Dev
in

InfoPath Dev

Select Lowest value from set of option buttons

Last post 08-18-2011 03:22 PM by mrmapi. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-17-2011 02:32 PM

    • mrmapi
    • Not Ranked
    • Joined on 08-10-2011
    • Posts 7

    Select Lowest value from set of option buttons

    I am trying to setup a chart that consists of 5 fields, each with 5 option buttons.  The option buttons have a value of 1-5 for each field.  The requirement for these is that no matter what option buttons are selected, evaluate the buttons and display only the lowest valued field in a text box.

    I have successfully completed this with 2 options but my xpath knowledge is at a low level and I am either going about it the wrong way or will end up writing too much code to complete a simple task so any help would be appreciated.

    I have attached a sample file that is laid out in the format I am looking to obtain.  Formula three in the file is where I started having trouble.  I posted what I was trying to use for xpath.

    Thanks in advance for any help that can be provided in pointing me in the right direction.

     Jason

  • 08-17-2011 08:47 PM In reply to

    Re: Select Lowest value from set of option buttons

    For the fifth box, you can use the formula,

    xdMath:Min((../my:field17 | ../my:field18 | ../my:field19 | ../my:field20 | ../my:field21)[. != ""])

    and you can extend this pattern for more option buttons.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-18-2011 03:22 PM In reply to

    • mrmapi
    • Not Ranked
    • Joined on 08-10-2011
    • Posts 7

    Re: Select Lowest value from set of option buttons

    Thanks for the help!  This worked perfectly.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.