Would someone tell me which of these JavaScript of other pages I should modify to validate data on a form. I want to fire this code when someone changes any field on the contacts screen in the Sales app.
*This post is locked for comments
Would someone tell me which of these JavaScript of other pages I should modify to validate data on a form. I want to fire this code when someone changes any field on the contacts screen in the Sales app.
*This post is locked for comments
When an field is changed I want to call a web service and pass it the fields in JSON format.
Hi Walker,
You need to create your own JavaScript web resource, and upload it to your CRM environment.
You then need to add the library that you uploaded to the form, and attach the function to the OnChange event in the field properties.
Hope this helps.
Wow this is helpful. It should be part of the Microsoft instructions which skip right over the basic questions "where do you go" and "what do you edit."
I got the code from the tutorial loaded, but it's running in a loop and causing the screen to blink all by itself. Now I will have to look for more examples.
Hi,
What is your requirement why you want fire logic on change of every field ??
Anyway open Contact entity record and select Form Editor under ..... while will open contact entity form editor and Click on Form Properties button from form ribbon bar, it will show you all the web resource used on contact entity form.
Hi Walker Rowe,
The screenshot is for the eb resources. Yo add JS on the entity, you need to add these web resources to the entity form (Type main). If you have multiple main forms then you need to add this to all the required form.
Check the below blog on the java script,
community.dynamics.com/.../javascript-basics
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156