This blog can help you in Development Level(X++) and Implementation Level to be familiar with MS Dynamics AX
To check the caller form name you can use this code.
if( element.args().parm()==formstr(FormName))
{
//<Code>
}