Hide the "NEW" UI action in the related list when the parent record field value changes.

AnjaliT
Tera Contributor

Hi Community,

We have received a requirement recently to hide the "New" UI Action in the related list - "resource_plan" in the project task form when the state of the project task is closed complete in the timecard application.

AnjaliT_0-1752613189133.png

 

Please advise if there is any solution for this.

Looking forward to your guidance and recommendations.

Thank you!!

4 REPLIES 4

GlideFather
Tera Patron

Hi @AnjaliT 

 

  1. navigate to your screenshot > click right mouse button on the column label > Configure > List Control:
    • Mark "Omit New Button" to true and it will not be available for anyone,
    • or Adjust the New roles (e.g. admin only) on the right side
    KamilT_0-1752616044507.png

     

    KamilT_1-1752616092716.png

     

  2. navigate to [sys_ui_list_control] table, search for the table (it is not clear from the screenshot):

KamilT_2-1752616253800.png

 

Let me know how did you progress with hiding the NEW button and thank you accepting my solution

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @AnjaliT have you made any progress? I believe my response explained what you must do to achieve your goal, can you confirm?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @Kamil ,

Thanks for your response.

If the above approach is followed, the NEW UI button will not be available for anyone irrespective of the condition.

However, I would like the button to be hidden when the parent project task is closed complete in the resource plan related list and should be visible elsewhere.

@AnjaliT for that you will need to script condition in ACL and still not sure if it is possible for a New button on a list view

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */