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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Delete functionality is not working after adding JavaScript to delete button

(0) ShareShare
ReportReport
Posted on by 120

I want to Execute JavaScript in on click of Delete button in the form and sub grid for the same I used ribbon work bench, I am able to fire the java script but the CRM Delete functionality stopped working

*This post is locked for comments

I have the same question (0)
  • JonEvans Profile Picture
    245 on at

    All you need to do is modify your JavaScript so that you can delete the record this way instead of relying on the button. So run your code and then, when you're finished, run some delete code (you'll have the record's guid, name, etc).

  • Hosk Profile Picture
    on at

    are you saying you had code to delete a record, which use to work but has suddenly stopped working

    When did it work?

    Why has stopped working (have you upgraded recently, rollups?)

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    Using the Ribbon Workbench you will need to right click on the delete button and select customise command. Find the customised delete command in the 'Solution Elements' pane and then insert your own custom javascript action above the standard out of the box action.

    Hope this helps,

    Scott

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans