Skip to main content

Notifications

Announcements

No record found.

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 85

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
    sandeepstw 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
    Venkateshpilla 85 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
    Justinjose 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
    Venkateshpilla 85 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 Profile Picture
    Aric Levin 30,188 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
    Mahendar Pal 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
    Justinjose 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 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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans