Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to populate the field when the checkbox is check

Posted on by 220

Hey Guys

Do you have an idea on how to automatic populate the field when the checkbox is checked, for example i have a Contact form and it store all of the information of a person and on the bottom part there was a section to add a case and it will show up another form. On the case form there was a checkbox that if the case is emergency or not and on the next section where i can add a new recommendation and again it will show up another form to add some data on the field. but what i want is on the recommendation form when the checkbox is checked it will automatically filled the field with the "emergency" word and the type of the field is option set there was already some data. i already add condition in the workflow that "if case: Emergency equals Yes" and i add a update form and then i select the emergency word on field save and then activate and publish and refresh the page and i try to test the form. i try to check the checkbox and then save and after that i add a recommendation and still the the field is on a selection mode.

Anyone can help me with my project.

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: How to populate the field when the checkbox is check

    Ok so if you have the relationship then you can write the javascript to get the information from Case entity and can autopopulate it on the Recommendation form.

    You could have also used Quick View Form in order to display the Case information without writting JS code. For this you must have Case lokup on Recommendation form.

    So its up to you. Which way you prefer to meet your requirement.

    Good Luck.

    Mark this an answer. If it helps.

    Cheers

    Arpit

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to populate the field when the checkbox is check

    thank you so much im working now with the solution you've provided.

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to populate the field when the checkbox is check

    thank you so much for the information, i will try to edit the JS.

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to populate the field when the checkbox is check

    yes sir i already setup a relationship between case and recommendation form

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How to populate the field when the checkbox is check

    Hi ,

    No doubt this is very complex scenario you are working with.

    Could you please summarise your question in one sentence.

    What I understood in last few words recommendation optionset set value is not been set in update form if it's so I would recommend to write javascript in onload and retrieve the case details and set using javascript instead of workflow.

    Hope this helps.

  • Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: How to populate the field when the checkbox is check

    Hi Kael,

    Sorry I am bit confused. What I understood is, as soon as user marked the case Emergency, you want to autopopulate this on Recommendation form?

    So if my understanding is correct then I would like to know, Do we have any relation between Recommendation and Case Entity? Any Case lookup on Recommendation form, something like this?

    Thanks

    Arpit

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to populate the field when the checkbox is check

    Hi KaeL,

    I think what are trying to do is pass parameters to the new entity form that is opened up.

    This can be done through script. Please see this article: msdn.microsoft.com/.../gg334375.aspx

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans