More than one conditional formatting on text box - InfoPath Dev
in

InfoPath Dev

More than one conditional formatting on text box

Last post 09-18-2008 03:37 PM by phamj. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-15-2008 06:30 PM

    • phamj
    • Top 500 Contributor
      Female
    • Joined on 05-22-2008
    • Australia
    • Posts 26

    More than one conditional formatting on text box

    I have a button for validation calling from a web service to validate a rich text box field.  Series of 3 different validation messages are passed back to a text box field for the error messages.

    At the moment I set the error message text box field to return

    1. OK = Green

    2. WARNING = Orange

    3. ERROR = Red

    I've used "contains" OK, WARNING, ERROR in the conditional formatting option for the error message text box

    Problem: 

    The error text box return several warning and error messages. The problem is that if it contains an ERROR message, the text box will turn all the other WARNING messages to red as well. 

    Is there a way where I could set the colour of each messages within the conditional formatting to change the colour according to the error without having to change/add additional text box fields in the data source?

  • 09-18-2008 03:38 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: More than one conditional formatting on text box

    Hello,

    For your form you are getting three validations are firing for your error message. After executes any validation you have to set one secondary dom field value from ‘false' to ‘true'.

    Add this secondary dom field also in conditional formatting as ‘field name' is equal to ‘false'.

  • 09-18-2008 03:37 PM In reply to

    • phamj
    • Top 500 Contributor
      Female
    • Joined on 05-22-2008
    • Australia
    • Posts 26

    Re: More than one conditional formatting on text box

    Thanks Shiva,

    I thought of that but then to save us the hassle, we decided to just get rid of the Warning message and use the two ok and error messages instead.

    Cheers

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