Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Customize Web Form

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans