Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

left alignment of create button in webpage with entitylist

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

I must be missing something obvious

We have a webpage with an entity-list.

Above the list we have a create item button, but this button is alligned right

How can I make the buttons allign left ?

I can make it work when I change the class value below in "pull-left" in de developermode of the webbrowser, but what is the (persistent) CRM Dynamics Portal way to do this ?

<div class="pull-right toolbar-actions">.... buttons ....</div>

*This post is locked for comments

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: left alignment of create button in webpage with entitylist

    Hi Michel,

    There is no out of box way to achieve this. You can achieve this using script only.

    One more way you can try-

    Navigate to Portals > Web Files > Open Bootstrap.min.css > Change the css file as per your need and upload it again.

    Take the original file backup before performing this action.

    Hope it helps.

    Cheers

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: left alignment of create button in webpage with entitylist

    thanks for this coding solution, but I was hoping for a way similar to the action button configuration on entity-forms.

  • Verified answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: left alignment of create button in webpage with entitylist

    Hi,

    You can write below code under Custom JavaScript section of your webpage:

    $(window).load(function() {
    $('.pull-right').removeClass('pull-right').addClass('pull-left');
    $('.toolbar-actions').attr('style','position: absolute;');
    });

    5432.2.PNG

    5432.2.PNG

    Mark this an answer, If it helps

    Cheers

    Arpit

    http://arpitmscrmhunt.blogspot.in

     

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: left alignment of create button in webpage with entitylist

    Write the script in Custom JavaScript of webpage

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: left alignment of create button in webpage with entitylist

    One way would be to use jquery in the web page advanced section javascript to change the class value when the page loads.

    Something like this:

    $('.crmEntityFormView .actions div:first').removeClass('pull-right').addClass('pull-left')

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans