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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pre-populating Dataver...
Power Apps
Unanswered

Pre-populating Dataverse Required choice field causes record to be saved with blank required field

(0) ShareShare
ReportReport
Posted on by 2,324 Moderator

I have created a Dataverse Table with a Choice field that is required.

365-Assist_0-1616376616193.png

 

As per standard when I try to save the form with a blank  ChoiceField it fails because its required.

365-Assist_1-1616376837736.png

 

Here is the change I make to make the issue occur. On the ChoiceField I make change the DefaultSelectedItems to "Choice1"

 

365-Assist_2-1616379112559.png

 

Now when I run the form I can save the record.

365-Assist_3-1616379240077.png

 

When I look in the Dataverse Table I see that the record has saved but without the Required Field of ChoiceField.

365-Assist_4-1616379622716.png

I expect the correct behaviour to be: 

1 - Not have saved the record with a blank Required Field and 

2 - Saved the record with the value "Choice1" as per the form. - this is more important to me than point 1.

 

 

Categories:
I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @365-Assist,

     

    Can you try setting the Default property of the control to ChoiceField.Choice1?

     

    Additionally, it's a bit misleading such that setting the Column to required for your Dataverse table in the column settings  only enforces this on the user interface, not on the server side. You should create a business rule that is entity scoped to make the field required, which will enforce this on the server side.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • 365-Assist Profile Picture
    2,324 Moderator on at

    Thanks Chris,

     

    1 - Which Control should I set to ChoiceField.Choice1?

     

    2 - To make this example simple I left a bit out to my topic above. In fact what I am trying to do is set the  value of the ChoiceField to be based on an option that the user makes somewhere else.

     

    At any rate don't you think the the work I have shown in post above should NOT allow a record to be created as it is missing a required field value?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard