Using Custom JavaScript field on Entity Form to add JavaScript in Portal in Dynamics 365
Views (3667)
Suppose we have added an Entity Form on Portal to display Lead information to the portal.
https://nishantrana.me/2017/02/03/using-entity-form-to-show-crm-form-inside-portal-in-dynamics-365/
Now we want to add some JavaScript to it. For this we can use the Custom JavaScript field in Additional Settings tab of Entity Form.

We can make use of jQuery for this. The above code shows alert and also accesses the Topic field of Lead record using the schema name subject.
Alert Message –

Setting field value –

More details below
https://www.microsoft.com/en-us/dynamics/crm-setup-and-administration/custom-javascript.aspx
https://rajeevpentyala.com/2016/09/12/useful-jscript-syntaxes-adx-portal/
Hope it helps..
Filed under: CRM, CRM 2016 Update 1, Dynamics 365, Microsoft Dynamics 365, Microsoft Dynamics CRM Tagged: CRM, CRM 2016 Update 1, Dynamics 365, Microsoft Dynamic CRM, Microsoft Dynamics 365
This was originally posted here.

Like
Report
*This post is locked for comments