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

Notifications

Announcements

No record found.

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,027 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans