cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SunilR
Helper I
Helper I

how add a new button in entity list

Hi All,

 

I have a Entity List, on that i need to add a custom button beside of Create button and redirect to a link.

Please suggest. Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
OliverRodrigues
Super User
Super User

Hi @SunilR 

 

You can achieve that by adding a JavaScript code into your Web Page

 

First you have to define your button, in the below example I am created the variable myCustomButton and kind of copying what the create button looks like, you can always change colors, or do anything here.

Finally you need to append (to show after) or prepend (to show before) the create button:

 

 

$(document).ready(function(){

    CreateCustomButton();
});

CreateCustomButton = function(){
    var myCustomButton = '<div class="input-group pull-left"><a href="http://bing.com" class="btn btn-primary pull-right action" title="My Link">My Link</a></div>';
    $(".toolbar-actions").append(myCustomButton);
    $(".toolbar-actions").prepend(myCustomButton);
};

 

 

custombutton.PNG

 

hope this helps


------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

View solution in original post

7 REPLIES 7
OliverRodrigues
Super User
Super User

Hi @SunilR 

 

You can achieve that by adding a JavaScript code into your Web Page

 

First you have to define your button, in the below example I am created the variable myCustomButton and kind of copying what the create button looks like, you can always change colors, or do anything here.

Finally you need to append (to show after) or prepend (to show before) the create button:

 

 

$(document).ready(function(){

    CreateCustomButton();
});

CreateCustomButton = function(){
    var myCustomButton = '<div class="input-group pull-left"><a href="http://bing.com" class="btn btn-primary pull-right action" title="My Link">My Link</a></div>';
    $(".toolbar-actions").append(myCustomButton);
    $(".toolbar-actions").prepend(myCustomButton);
};

 

 

custombutton.PNG

 

hope this helps


------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

Thank you @OliverRodrigues. You helped me so many times.

I am glad to help 😉 😉 😉




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

Multiz
Frequent Visitor

@OliverRodrigues 

Is it possible to have "like" button in the grid and make it "count the likes" from users  ?

 

OliverRodrigues
Super User
Super User

Hi @Multiz there is no OOB function for that, at least not for regular records from OOB entities or custom entities

 

there are a few ways to implement this:

 

 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

yabela
Helper I
Helper I

What if you need to add a custom button within the grid (i.e. it shows for each record not next to the Create button at the top of the list) that when clicked, it calls a Power Automate Flow and passes the record's ID? Any ideas?

OliverRodrigues
Super User
Super User

Hi @yabela 

For triggering Power Automate flows you can take a look at this article: How to Trigger Power Automate Flow from Power Apps Portals (alphabold.com)

You can add links to your list in many different ways, one example you can find here: http://oliverrodrigues365.com/2020/05/24/power-apps-portals-generate-and-download-word-document-from...

This seems to be an old thread, if you need any more info, I would recommend creating a new thread in the forum

 

thanks

oliver 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,679)