Hi,
The Client API object model for model-driven apps (formContext) is introduced when the model-driven apps came to the stage. It is not used in Dynamics CRM 2016.
docs.microsoft.com/.../understand-clientapi-object-model
docs.microsoft.com/.../clientapi-form-context
You need to use Xrm.Page object model.
https://community.dynamics.com/365/b/d365demystified/posts/understanding-xrm-page-object-model
Regards,
in crm 2016 you need to use Xrm namespace (like Xrm.Page.getAttribute)
formContext is available starting from Dynamics 365 v9
Stay up to date on forum activity by subscribing.