How to create a button on related list of a form

Community Alums
Not applicable

I need to create a button in related list of a form. Please provide me solution on this.

 

Thanks & Regards
Utsav

4 REPLIES 4

K Akhila
Kilo Guru

Hi UTSAV 

 

By using UI Action you can create a button on any table under a related list. 

 

For example: Here is the incident table and under the related list -> outage -> Create a new button : As shown in below image.

KAkhila_0-1682181687332.png

 

Solution: 

On the left navigation search bar Search for -> 

UI Action -> under Table Filter Incident table -> under Name filter NEW -> Open "Related Lists for Incidents" as comments.

KAkhila_1-1682181969639.png

you can able to see how the "New" button is added please take this as a reference and change the label name as per your requirement and its functionality. 

 

Thanks you

Mallidi Suma
Tera Guru

Hi @Utsav JAISWAL ,

 

Usually in the majority of the tables, we will see either new or edit buttons in a related List. 

We can simply enable and disable these buttons by right-clicking on the related list field and selecting List Control.

If omit new check box is selected then it will not show the New button same for the new check box as well.

MallidiSuma_0-1682187380636.png

 

MallidiSuma_1-1682187409913.png

 

If you are looking for some other button in the native UI then please provide more details.

 

Please mark my solution as helpful, if it helps you!!

 

 

 

Karan Chhabra6
Mega Sage
Mega Sage

Hi @Utsav JAISWAL ,

 

You can create a UI action and select the 'list banner button' checkbox, if you want this button to be visible only in related lists, then you need to add this condition in the UI action.
RP.isRelatedList() 

If it is a many to many related list then you can use RP.isManyToMany() along with the above condition and if it is one to many, you can use RP.isOneToMany()

 

Ex. I created a UI action 'Remove All' on the 'task_sla' table with this condition

KaranChhabra6_0-1682199936372.png

 

Related List of incident:

KaranChhabra6_1-1682199981576.png

 

Task SLA table list view:

KaranChhabra6_2-1682200031375.png

 

 

If my answer has helped with your question, please mark this as helpful and accepted solution

 

Thanks!!

Nilanjan1
Mega Sage

Hello @Utsav JAISWAL , 

 

What kind of action do you want to create? Do you want to add customized action OR just bring in the OOB actions ? if later then it is already explained by the members here. 

Regards

Nilanjan