Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Get Name of SubGrid on Account Form that Triggers Javascript on the Contact Quick Create Form OnLoad

(0) ShareShare
ReportReport
Posted on by 70

Greetings,

There is a subgrid on a account form that allows you to quick create a contact (contact quick create form).  OnLoad of the quick create form, I need to be able to identify what subgrid triggered the quick create form as there are many on the form.

I currently have the javascript as follows that triggers on the contact quick create form onLoad:

function contactQuickCreateFormOnLoad(context)
{
debugger;

//alert("hello world");

var formContext = context.getFormContext();

var control = formContext.getControl();

}

Am I approaching this correctly as I need to get perhaps the name of the subgrid that triggered the quick create form to load? Is this the correct scope?

I ask this because the above code seems to only allow me to see the actual controls on the quick create form. I can't locate any metadata pertaining to the subgrid that triggered this.

Any suggests would be great.

Regards.

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 10,203 Super User 2025 Season 1 on at
    RE: Get Name of SubGrid on Account Form that Triggers Javascript on the Contact Quick Create Form OnLoad

    Hello,

    Try to save the record and when that particular record will be saved then it will be visible in the sub-grid.

    So from that you will know which sub-grid is creating this issue. Because even if you have multiple sub-grid the record will be visible on the related sub-grid and not on all sub-grid.

    Thank you,

    Amit Katariya

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: Get Name of SubGrid on Account Form that Triggers Javascript on the Contact Quick Create Form OnLoad

    Hi,

    You can pass parameter while opening the quick create form from subgrid on button click

    docs.microsoft.com/.../openform

    Use this parameter in your onload method of quick create form.

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,492 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