Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Autofill field contact

(0) ShareShare
ReportReport
Posted on by 55

Hey Guys

I'm trying to figure out how to create an If-Else-string in the entities.

Basically, when selecting the gender, the salutation should automatically be displayed in the corresponding field.

As an example:
Gender: Man
Salutation (autofill): Mr

Is there a way to do this?pastedimage1581881438600v1.jpeg

Many thanks in advance and greetings from Switzerland

  • LuHao Profile Picture
    LuHao 40,876 on at
    RE: Autofill field contact

    Hi Dale.Brunner,

    Please don't forget to click "Yes" under "Did this answer your question?" to close this thread.

    Thanks.  :)

  • Verified answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Autofill field contact

    Dear Dale,

    Greetings of the day!

    In regards to your concerns, we have found the link, which would help on your end to get the things done.

    Kindly find the reference link below:

    https://www.inogic.com/blog/2016/12/business-rules-dynamics-365/

    https://www.powerobjects.com/blog/2015/02/04/setting-field-values-vs-setting-default-values-business-rules/

    I hope it helps! Kindly go through the link and feel free to let us know in case of any other concerns, we would be happy to assist you further for the same.

    Kind Regards,

    CRMjetty

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

    DynamicsCRM Customer Portal for Wordpress

     

  • Verified answer
    LuHao Profile Picture
    LuHao 40,876 on at
    RE: Autofill field contact

    Hi partner,

    For "If else" between fields on the form, we could use business rules to achieve it.

    I will provide you with specific steps.

    Here I have these two fields on the Contact form.

    Go to Advanced Find > Customizations > Customize the System, expand Entities > Contact > Business Rules. New a business rule.

    pastedimage1581909534530v1.png    pastedimage1581910197116v2.png

    First select the scope in the upper right corner, which determines which forms the business rule will work on.

    pastedimage1581913293925v3.png

    Set the condition.

    pastedimage1581913657629v4.png

    Then add an action that Set Default Value.

    pastedimage1581914202485v5.png

    Add another condition.

    pastedimage1581914257184v6.png

    Then add an action that Set Default Value.

    pastedimage1581914331708v7.png

    IF

    Gender equals "Male"

    THEN
    Set default value of Salutation to "Mr"
    ELSE IF

    Gender equals "Female"

    THEN
    Set default value of Salutation to "Ms"
     
    Finally save and publish.

    Please note that in business rules you should choose Set Default Value instead of Set Field Value.
  • Verified answer
    meelamri Profile Picture
    meelamri 13,212 User Group Leader on at
    RE: Autofill field contact

    Hello, 

    You need to create a business rule

    If gender isEqual to 'Man' then set value 'Mr'

    Check this video, it will be helpfull: 

    https://youtu.be/Pg4UDppcrgk

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans