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 / If form is New, limit ...
Power Apps
Answered

If form is New, limit the combobox list to 1 predetermined value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a workflow that requires a new item to be entered initially with the Status = Open.

 

So let's say my Status can be = Open, In Progress, Closed.
I load these options in the comboBox with:

 

Items:

Choices([@'My Sharepoint List'].'Ticket Status')

Default Selected Items:
Parent.Default

This works great but how can I force the comboBox to display Open and hide the other two options when the form is New?

I tried:
Default Selected Items:

 

If(EditForm1_.Mode = FormMode.New,Filter('My Sharepoint List','Ticket Status'.Value="Open"),Parent.Default)

 

 

But I get an error saying 

WorkHard_0-1624906699411.png

 

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hello @Anonymous 

     

    Use this on the DefaultSelectedItems

     

    If(
     EditForm1_.Mode = FormMode.New,
     { Value: "Open" },
     Parent.Default)

     

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Just curious, would it not be easier to set the default item to open always, and just hide the combo box via visibility, or set its mode to disabled or view when form mode is new? That way your user's wouldn't have a clickable combo box with only option inside of it for new forms, seems like easier way to accomplish this.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. Yes, that would indeed make more sense but the truth is, I try to break down my questions and make them very simple to understand and respond to.

     

    In my real project, that status depends on many more factors and each does some action. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. I also had to do:

     

    If(
     EditForm1_.Mode = FormMode.New,
     ["Open"],
     Parent.Default)

    in the Items property to limit to Open only.  

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard