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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set default choice fie...
Power Apps
Unanswered

Set default choice field value on New Form and allow later changes in Edit Form

(0) ShareShare
ReportReport
Posted on by 118

I have a Sharepoint list with a choice column (->Status).

 

When a new form is created, I want the default choice value to be set to "0 % - open"

 

To achieve this I set the property of the DataCardValue as follows:

DefaultSelectedItems: {Value:"0 % - open"}

 

After I submit the form, all input values are transferred to the SP list, but the set default value does not appear in the column "Status".

 

If I go the edit form within Powerapps and lookup the corresponding dataset, I find the Status value as set in default (-> 0 % - open). 

 

Then if I choose another status value (e.g. "25 % - read") from the dropdown field and save/submit the new edit form, the updated value is also not transferred to the SP list and within PowerApps is always set back to the default value (-> 

0 % - open).  

The property of the DataCardValue of SP column "Status" in the edit form is "DefaultSelectedItems: Parent.Default" and "Items: Choices([@'SPlistname'].Status)".

 

What do I have to do that the default respectively edited values from the choice field "Status" are transferred to the SP list and the edited values are saved correctly and do not get overwritten by the default value again???

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @DirkKoch 

    Make sure the Update property of the card reflects the control inside.  If the control is DataCardValue6 then the Update property should be DataCardValue6.Selected

    Set the DefaultSelectedItems: Coalesce(Parent.Default, {Value:"0 % - open"})

    Coalesce() reads its elements from left to right until it finds a non blank value, That way if the form is new, Parent.Default will always be blank and your value will be the selected items but otherwise, there will be a value in Parent.Default.

  • DirkKoch Profile Picture
    118 on at

    @Drrickryp  Thank you the reply. Unfortunately both input factors are set correctly.
    -> no default value set in SPlist

    DirkKoch_0-1675626626210.png

    Update property of the card matches the DataCardValue no (-> in my case Update: DataCardValue23.Selected)

    Any further ideas?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @DirkKoch 

    I modified my answer please review above again.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @DirkKoch 

    I modified my answer please review above again.

  • DirkKoch Profile Picture
    118 on at

    @Drrickryp I changed it but still the same error respectively no status shown in the SP list (only within PowerApps).

     

    When I edit the status, I sometimes get an error when submitting the edited form as well: 
    error with "SPlistname": ETAG mismatch????

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard