Skip to main content

Notifications

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

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    Yes,

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

  • Suggested answer
    Venkateshpilla Profile Picture
    87 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    Hi Justin,

    Thanks a lot, this helped to resolve my issue.

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    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

  • Venkateshpilla Profile Picture
    87 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    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
    Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    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.

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

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

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

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at
    RE: Submit an entity form in a Hyperlink click in CRM portals

    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

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans