Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Open custom form using custom button

(0) ShareShare
ReportReport
Posted on by 5

Here's my scenario:

I have two custom entity, Vehicle and Drive. 

When I open a Vehicle record, I want to have a button on top of the form. When I click the said button it will open the Drive form and should auto populate some fields from Vehicle.

Please guide me on how to achieve this.

Thanks in advance.

  • xtian Profile Picture
    5 on at
    RE: Open custom form using custom button

    Thank you Wahaj!

    I will go through the articles you have provided.

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Open custom form using custom button

    Hi,

    Thank you for your query.

    You can add a button using Ribbon Workbench and bind a Java Script command to open the form.

    Here is how you can add a ribbon button and javascript action:

    Creating a Ribbon Button Using Ribbon Workbench to call a JavaScript action · BGBS Portal (briteglobal.com)

    In your JavaScript function, call Xrm.Navigation.openForm to launch the new form, to set fields, data can be passed as form parameters:

    openForm (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

    Set field values using parameters passed to a form (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Docs

      

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,219 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,980 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans