web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,032 Moderator on at

    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.

  • Community Member Profile Picture
    on at

    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");

  • Community Member Profile Picture
    on at

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans