How to make ui action visible if certain field is not empty?

jenny32
Tera Guru

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.

21 REPLIES 21

JusCuz
Tera Guru

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.


Michael Fry1
Kilo Patron

Maybe something like:



!current.xyz.nil() && !current.xyz.abc.nil()


^^^ that's even better, but again, is xyz a table or a field?


Hi,



Here 'xyz' is a field in incident table and this field is referenced to 'Application' table.