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.