Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

which of these webforms do I modify to validate field input

Posted on by Microsoft Employee

screencapture_2D00_walkerrowecrm_2D00_crm6_2D00_dynamics_2D00_tools_2D00_solution_2D00_edit_2D00_aspx_2D00_1519348264095.png

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: which of these webforms do I modify to validate field input

    When an field is changed I want to call a web service and pass it the fields in JSON format.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: which of these webforms do I modify to validate field input

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: which of these webforms do I modify to validate field input

    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.

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: which of these webforms do I modify to validate field input

    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. 

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: which of these webforms do I modify to validate field input

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans