web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

left alignment of create button in webpage with entitylist

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    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')

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

    Write the script in Custom JavaScript of webpage

    Thanks

  • Verified answer
    Arpit Shrivastava Profile Picture
    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
    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.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans