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
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
Yes,
Dynamics crm form is also based on normal http post. So on js code call form submit button click. It will be post.
Hi Justin,
Thanks a lot, this helped to resolve my issue.
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
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.
You can use the query button click or form submit triggers:
$("#button_name").click();
$("#form_name").submit();
https://api.jquery.com/submit/
Hope this helps.
Id of the button should be UpdateButton, so you can use
$("#UpdateButton").trigger("click");
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
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156