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 / Default value in FormM...
Power Apps
Answered

Default value in FormMode.New

(0) ShareShare
ReportReport
Posted on by 119

Hello, 

I need to set a default value for a combo box data card in my "View_Form" in display mode New status to "Open".

 

I entered in Display mode property of Combo box Data Card Value following formula, but it shows "Expected enum value" error:

If(
View_Form.Mode = FormMode.New,
{Value: "Open"},
{Value: ThisItem.Status}
)

 

Could you please check what is wrong in my formula?

Thank you in advance.

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Eeyore2005,

    Please set the DefaultSelectedItems property as below:

    If(
    View_Form.Mode = FormMode.New,
    {Value: "Open"},
    {Value: ThisItem.Status}
    )

     

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard