fn-Or expression not working


Badge +5

Hi,

I've added the following double expression to the visibility setting of a button control, but it appears no matter the value in the "order status" field.

fn-Or(fn-Equals(Order status,5. Load check),fn-Equals(Order status,6. Waiting for approval))


If also tried them separately, they both work fine than.

fn-Or(FALSE,fn-Equals(Order status, 6. Waiting for Approval))
fn-Or(fn-Equals(Order status, 5. Load check),FALSE)


To clarify: I want the button to only be visible when the "Order status" is equal to "5. Load check" or "6. Waiting for Approval".

What is going wrong?

Thank you.


2 replies

Userlevel 5
Badge +14

I believe that you just need to wrap your second argument in the 'fn-Equals' function in quotes. 

fn-Or(fn-Equals(Order status,"5. Load check"),fn-Equals(Order status,"6. Waiting for approval"))
Badge +5

The issue indeed lay within the string text. First off it still didn't work, but it turned out the string text also needs to be case sensitive. 

 

Thank you.

Reply