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 / 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
    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

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