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 / Set default value of c...
Power Apps
Unanswered

Set default value of combobox on editform

(0) ShareShare
ReportReport
Posted on by 33

Hi.

I have a Combo Box inside my form that on itens properties I filter the company office365 users. When its used on a newform, its works fine. but when I try to edit a record and call the form as editform, I need it to come with the value of the selected record. So how como I set the default value as parent default?

 

that's the itens property.

 

Filter(Office365Users.SearchUserV2({searchTerm:DataCardValue15.SearchText}).value, Country="Brazil", "contoso.com" in Mail)

 

 

this is how I set the default value of the text input

 

If(
 Form_frmUser.Mode= FormMode.New
 ,DataCardValue15.Selected.OfficeLocation
 ,Parent.Default
)

 

 thats the form as edit mode

RaphaelMelo_0-1704982349756.png

 

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @RaphaelMelo 

     

    The code you provided looks fine, but just make sure it's in the 'DefaultSelectedItems' property, not the Default property.

     

    Hope this helps

  • Verified answer
    RaphaelMelo Profile Picture
    33 on at

    Thanks AmDev. 

    I solved doing this on the 'DefaultSelectedItems' property, 

    LookUp(Office365Users.SearchUserV2({searchTerm:Parent.Default}).value,DisplayName = Parent.Default)
    

     

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard