Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Customize Web Form

(0) ShareShare
ReportReport
Posted on by 20

Hi there,

I need to customize the following Web Form in Dynamics CRM 2016 - CRM Portal.

Any ideas how i could "pull-left" the button "Add Expense Evidence" (see image below)?

To my knowledge, this can' t be achieved with javascript even with jquery on the Form component. 

Any hint will be highly appreciated!

pastedimage1590494711938v1.png

  • george.bekos Profile Picture
    george.bekos 20 on at
    RE: Customize Web Form

    Thanks a lot, works like a charm :)

  • Verified answer
    - Matt Bayes - Profile Picture
    - Matt Bayes - 890 on at
    RE: Customize Web Form

    Hey George,

    This can actually be achieved by running JQuery code on the Entity Form.

    If you navigate to your Entity Form in Dynamics CRM and select the Additional Settings tab you can add JS code to this form.

    Paste this code into that section:

    $(function() {
        $("#ClinicLocation").on("loaded", function() {
            var toolbar = $(this).find("div.pull-right.toolbar-actions");
    
            $(toolbar).addClass("pull-left");
            $(toolbar).removeClass("pull-right");
        });
    });

    Replace the "ClinicLocation" parameter on line #2 with the name of your subgrid from CRM (the name that is on the form). Here's a screenshot with an example:

    sg_5F00_config.PNG

    This code should run On Ready of the Window, bind to the "Loaded" event of the Grid (since it loads asynchronously), and then add the pull-left class whilst removing the pull-right class.

    If you have any questions please let me know!

    I'd appreciate if you could mark this post as answered if it solved your issue!

    Thanks, and stay safe!

    Matt Bayes

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans