How do I hide options on the Add an approval modal?

CCSF-Syd
Tera Expert

Hi all,

 

This is driving my team a bit bonkers - does anyone know how we can customize the values in the "wait_for" field in the Add an Approval Modal (mainly, how we can hide certain values)?

 

Thank you SO much for all the help in advance.

 

We're on Zurich

7 REPLIES 7

Shashank_Jain
Kilo Sage

@CCSF-Syd ,

 

Update Choice List values

  1. Navigate to System Definition → Choice Lists.

  2. Filter by:

    • Table: sysapproval_approver (or Approval depending on your exact version).

    • Element: wait_for.

  3. Deactivate (uncheck “Active”) or delete the unwanted choices (Anyone to approve, Everyone to approve).

  4. Keep only the ones you want visible.

Note: If you remove values that are still referenced in flows/policies, those may break — so safest is to mark them Inactive rather than delete.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

@Shashank_Jain 

This is what I see and none of these are the right ones - I deactivate them all and I still see the same options in the modal.

 

I am in Zurich

@CCSF-Syd ,

 

Use OnLoad Client Script :

 

function onLoad() {
    // Remove unwanted choices from "wait_for"
    // g_form.removeOption('<field_name>', '<choice_value>');
   // First param: field name (wait_for) , 
  //Second param: the Value from sys_choice (not the Label).
    g_form.removeOption('wait_for', 'workflow'); 
    g_form.removeOption('wait_for', 'process_flow');
}

 

Hope it helps!

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain

@Shashank I can load this in Agent Workspace when the modal appears? How do I put that script on the Modal?