- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 03:50 AM
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 !=""
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 03:52 AM
Hi Phil,
Since, its ! i.e. negating it should always be && and not ||
Use below
current.work_start !="" && current.work_end !=""
instead.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 03:52 AM
Hi Phil,
Since, its ! i.e. negating it should always be && and not ||
Use below
current.work_start !="" && current.work_end !=""
instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 04:12 AM
That worked an absolute charm thank you so much I ended up with this code
current.work_start !="" && current.work_end !="" && current.assigned_to !=""