How to make ui action visible if certain field is not empty?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2016 06:00 AM
Hi All,
In incident table I have a field "xyz" which is a reference to "Application" table and in "Application" table I have field "abc" which is of string type.
According to my requirement I have written ui action and now the challenge I'm facing here is I need to hide the button when "abc" field is empty.
I tried putting current.xyz.abc != "" in my ui action condition field. So, for the first time when I open incident form the button is hidden. How can I make it visible when I select "xyz" field.
In ui action "Client callable" is true based on my requirement.
I'm not getting where I'm going wrong. Can anyone suggest me!!!!
Thanks,
Jennifer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2016 06:08 AM
Are both fields xyz and abc on the same table? From your description I'm assuming so. Keep in mind current.xyz.abc as you are stating it is saying when the current field 'abc' on table 'xyz'.
You wont make a field visible based on selecting a field or not (well not easily) but if you set the condition to current.abc != '' that should make the ui action visible when field abc is not empty. I'm not clear on what interaction field xyz has in your description.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2016 06:27 AM
Maybe something like:
!current.xyz.nil() && !current.xyz.abc.nil()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2016 06:30 AM
^^^ that's even better, but again, is xyz a table or a field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2016 08:47 PM
Hi,
Here 'xyz' is a field in incident table and this field is referenced to 'Application' table.