The CreatorCon Call for Content is officially open! Get started here.

How to hide Update and Delete button on Change Tasks when State is Closed or Canceled?

Akkapolk
Giga Expert

Create Change Request and then Click Change Tasks -> New.

find_real_file.png

 

How to hide Update and Delete button on Change Tasks when State is Closed?

find_real_file.png

 

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hi,

These should be global UI actions, You will need to take a copy of these UI Action, change its Table to Change Task and append your additional state conditions to its existing conditions.

current.isValidRecord() && current.canWrite() && gs.getProperty('glide.ui.update_is_submit') != 'true' && current.state !=3

View solution in original post

4 REPLIES 4

Alikutty A
Tera Sage

Hi,

These should be global UI actions, You will need to take a copy of these UI Action, change its Table to Change Task and append your additional state conditions to its existing conditions.

current.isValidRecord() && current.canWrite() && gs.getProperty('glide.ui.update_is_submit') != 'true' && current.state !=3

Thank you very much.

Sanjay Bagri1
Tera Guru
Tera Guru

Hi ,

Go to change_task table and right click on the update and delete button and add this condition in condition field for both button.

&&(current.state!=3||current.state!=5) // 3 = closed & 5 = cancelled ;

find_real_file.png

See below screen :

find_real_file.png

Please mark as correct and also helpful .

Thanks

Sanjay Bagri

Dxsherpa.com

For some reason, 

This works:

current.isValidRecord() && current.canWrite() && gs.getProperty('glide.ui.update_is_submit') != 'true' && current.state!=3 && current.state!=5


This do not work

current.isValidRecord() && current.canWrite() && gs.getProperty('glide.ui.update_is_submit') != 'true' &&(current.state!=3||current.state!=5)