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

current.state == 4, where 4 equals Closed/Resolved out of the box.


i mean this button only be visible when state is closed/resolved


so


current.state == 4;


current.update();


is it work?



or client script?


pls help me out


can u help me out in this



Create Form Button Problem TASK: once you click on this button state


should be In-progress and new Problem Task should be created.



i have created a button and after clicking its also going into


in-progress state.



but how problem task should create?




On Wed, Dec 21, 2016 at 11:02 PM, kiranfurqan <


button = UI action. Add current.state == 4 to the condition of the UI action. Then it will only show when State is Closed/Resolve.


kiranfurqan
Kilo Contributor

Create Form Button Problem TASK: once you click on this button state


should be In-progress and new Problem Task should be created.



i have created a button and after clicking its also going   into


in-progress state.


i need help in the following


but how problem task should create?