Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Form custom command pop up a dialog, collect data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the following requirement

  1. User clicks a custom command button on the form view of an entity.  The command button calls a javascript.
  2. Upon clicking the button in step 1,  the JavaScript opens up a dialog and asks user to specify some values.
  3. Once the user clicks submit on the above dialog then the dialog closes and the javascript uses the values supplied in step to update the entity in step 1.

How do I do this in CRM Online?

*This post is locked for comments

  • Suggested answer
    Shantnu Sharma Profile Picture
    Shantnu Sharma 655 on at
    RE: Form custom command pop up a dialog, collect data

    1. Add a custom javascript action to your button. And register a method on this action to open the dialog. Use the following link to know, how to open a dialog.

    2. Create a dialog from with in CRM Process. You could see any tutorial for this. Add custom fields you need to use in your dialog page.

    3. In the dialog itself, you can add step to update the entity. While updating, you could map your fields (present as local variables). Please let me know if you need further help.

  • Suggested answer
    Pranesh M Juwale Profile Picture
    Pranesh M Juwale 1,196 on at
    RE: Form custom command pop up a dialog, collect data

    ribbonworkbench.uservoice.com/.../140652-create-a-dialog-short-cut-ribbon-button

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,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans