Hide 'Preview' Button/icon from specific Tasks with condition

Ahmet1
Tera Expert

Hi,

We have catalog Tasks that get generated for all requests and all tasks have 'Preview record' icon next to Request Item variable (see below)

find_real_file.png

I would like to hide this icon / button for specific catalog item requests where we have hidden Variables using client scripts on these specific catalog item requests. 

Because this "Preview this record" button is available on all tasks, if users click on this, it will show them variables that are hidden in request item table including the hidden variables that are hid using client scripts for that table.

Is there any way we can set condition to hide the button "Preview this record" where configuration item is x or similar? or what are my options? 

We cannot hide the button completely as we use it for other tasks but this specific request may have confidential data which we have used client script to hide from task table but its still available from the preview this record button.

Please assist thanks!

1 ACCEPTED SOLUTION

Hi

If you are talking about Request Item then I know for a fact it's a field on sc_task table.

Can you please apply my solution on Request Item field, and let me know?

and if you want to hide all the variables from pop-up view, you can follow this link

View solution in original post

5 REPLIES 5

Shivani Singh1
Tera Guru

Hello,

In dictionary of request item field, set attribute as "ref_decoration_disabled".find_real_file.png

 

Let me know in case of any concerns.

Please mark helpful and accept the solution if it solves the purpose.

Hi,

These are variables from catalog requests not fields on request item table. Isit still possible to add this attribute? 

If its not possible to hide specific variables, can I completely hide all variables from reference / preview this record button?

Hey Ahmet,

Check below screen shot and try.

find_real_file.png

 

Hi

If you are talking about Request Item then I know for a fact it's a field on sc_task table.

Can you please apply my solution on Request Item field, and let me know?

and if you want to hide all the variables from pop-up view, you can follow this link