1
0
-1

I have a non-compulsory radio group field with three options "A", "B" and "C". At a later stage I need to display the selected value from this field but only if a value has been selected; this is for customer verification - so, a text field with a visibility rule seems ideal. To make this work, the rule appears to require the explicit reference to the possible values - 'Util.contains(["A","B","C"], data.salutation) ' - but this is not scalable as all the possible values would have to be entered and then amended every time a value changed.

Ironically, the Util.isBlank method is exactly the opposite of what is needed - how can a Util.isNotBlank method be created?

TIA

    CommentAdd your comment...

    1 answer

    1.  
      3
      2
      1

      You can use the Logical NOT operator !

      !Util.isBlank(data.salutation)

      OR

      Util.isBlank(data.salutation) == false

      Both will get the desired result, however the first example is less code

        CommentAdd your comment...