3 Replies Latest reply: Mar 26, 2016 10:51 AM by Stefan Wühl RSS

    List Box link

    Andros Goh

      Hi,

       

      I have 2 list box below :

       

      When  I click BOOKED in List Box Status, the 2nd List Box (TransportMode) below will auto select B and V

      and if I select BOOKCONFRE, the 2nd List Box will auto select A,C,P,T.

       

      list.png

      How should I code the 2nd List Box ? I tried various IF statement but didn't work.

      Appreciate anyone could help.

       

      Thank You.

       

      Regards,

      AG.

        • Re: List Box link
          Stefan Wühl

          IMHO, you shouldn't write any specific code for list boxes in general, but list boxes should show the association between field values in your data model.

           

          So, how are these two fields related in your model?

            • Re: List Box link
              Andros Goh

              HI,

               

              The first box is the status code. where the 2nd box is the category code. E.g. document 00012800 is tie to status BOOKED and TransportMode BOOKED.

               

               

               

              User prefer to just select BOOKED and B, T automatically being selected. Thank you.

               

              Regards,

              AG

                • Re: List Box link
                  Stefan Wühl

                  If the user really wants field values to get automatically selected, I think you would need to use triggers (e.g. Field Event Triggers in Settings - Document properties - Triggers) with a Selection - Select in field action. or Selection - Select Possible action.