Syntax for UI action OR Condition

phil34
Tera Expert

Hi Community,

Can you please assist me with the syntax of the condition of a UI action.

I have a button on the incident form that I want to hide if any of the 3 required fields are empty, or in other words, all 3 of the fields need to be populated for the button to appear.

This is what I currently have just for two of the fields but when I test it the button appears if one of the fields is empty and one is populated it should not appears until both fields are populated. If you can help me to get this to work then I should be able to extend the code to include the 3rd field  myself?

current.work_start !="" || current.work_end !=""

find_real_file.png

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Phil,

Since, its ! i.e. negating it should always be && and not ||

Use below

current.work_start !="" && current.work_end !=""

instead.

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Phil,

Since, its ! i.e. negating it should always be && and not ||

Use below

current.work_start !="" && current.work_end !=""

instead.

That worked an absolute charm thank you so much I ended up with this code

current.work_start !="" && current.work_end !=""  && current.assigned_to !=""