Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Voice of the Customer Two set option default value issue

(0) ShareShare
ReportReport
Posted on by

Hi,

Was required to set the default value of a certain field in Survey entity from Yes to No. I edited the default value to No and published it but every time we're creating a new Survey the initial value upon form loading is No but keeps on going back to Yes.

6560.survey.jpg

Has anyone experienced this issue?

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Voice of the Customer Two set option default value issue

    Please try below and let me know if that answers your question.

  • Community Member Profile Picture
    on at
    RE: Voice of the Customer Two set option default value issue

    Hi, How are you setting defaultValue in formXML?

    try this in form XML: <DefaultValue>true</DefaultValue>

    On Page load, change the value to value you need;

    var yourAttribute = Xrm.Page.data.attributes.get("controlname");

                   yourAttribute.setValue("0");

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: Voice of the Customer Two set option default value issue

    Hi Rome Palaganas,

    Check that there is no custom logic running on the field such as a Business Rule, JavaScript, Plugin, or Workflow, as this is a potential cause of the problem.

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans