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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Submit an entity form in a Hyperlink click in CRM portals

(0) ShareShare
ReportReport
Posted on by 87

Hi All,

Is there any way to call an entity form "Submit" button from Java script code in dynamics CRM portals?? 

Your help would be highly appreciated. Thanks in Advance!!

Regards,

Venkatesh

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Yes,

    add following code in the custom script section of Entity Form. Use Browser Developer tool kit find button Id

    $(document).ready(function () {
    
        if (condition) {
            $("#buttonId").trigger("click");
        }    
    });


    Thanks

    Justin Jose

  • Mahendar Pal Profile Picture
    45,095 on at

    Id of the button should be UpdateButton, so you can use

    $("#UpdateButton").trigger("click");

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can use the query button click or form submit triggers:

    $("#button_name").click();

    $("#form_name").submit();

    https://api.jquery.com/click/

    https://api.jquery.com/submit/

    Hope this helps.

  • Venkateshpilla Profile Picture
    87 on at

    Thanks for your replies.

    My actual requirement is, I have a custom button on My WebTemplate and on click of that button I need to Submit an Entity form.

    Could you please suggest me the ways to achieve this.

    Thanks in Advance.

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi

    change the id and Add following code in Entity Form Script area.

    $(document).ready(function () {

       $("#custombuttonId").click(function() {

           $("#submitbuttonId").trigger("click");

       });  

    });

    Thanks

    Justin Jose

  • Suggested answer
    Venkateshpilla Profile Picture
    87 on at

    Hi Justin,

    Thanks a lot, this helped to resolve my issue.

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Yes,

    Dynamics crm form is also based on normal http post. So on js code call form submit button click. It will be post.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans