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 Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

5 REPLIES 5
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 Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

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 Apps Portals Super User


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 Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (879)