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

Community site session details

Session Id : ekrYl5v7D1pLXoqG0ec5jN
Power Apps - Building Power Apps
Unanswered

Issues with Combobox default option

Like (0) ShareShare
ReportReport
Posted on 2 Dec 2020 09:38:19 by 42

Hi All,

 

I have an urgent requirement to complete below task, 

 

In my app, i am using cascade drop down, textbox and combobox. 

 

source & Datastoring in sharepoint and using gallery to view / edit existing entry and add new entry. 

 

so previous / existing entry selection is working fine in drop down and textbox using this code "Thisitem.Task" 

but in combo box default value is not coming properly also true false text box will perform based on combobox selection value so each time combobox is expecting to select values but i dont want to select for the existing entry. 

 

Anyone help me to fix this problem. 

 

ComboBox details:

Items : Distinct(AccountNameLookup,'Account Name')

 

Defaultselecteditems: ForAll(Filter(AccountNameLookup,
'Account Name'=ThisItem.ClientName
),
ThisItem.ClientName
)

 

Displayfields: ["Result"]

 

InputTextPlaceHolder: ThisItem.ClientName

 

SearchFields: ["Result"]

 

SelectMultiple : false 

 

Default:  

 

 

Based on this combobox selection , hidden truefalse textbox and onedropdown have to select appropriate value automatically but for the first time selection its working fine but for view / edit for the previous entry combo box .selected.result is empty. 

 

Thanks in advance. 

Categories:
I have the same question (0)
  • gvrspk Profile Picture
    42 on 08 Dec 2020 at 12:06:32
    Re: Issues with Combobox default option

    Sorry for the delayed reply. 

     

    I am using Gallery , inside i have 2combo box and few dropdowns and textboxes. 

    1. Gallery ITems : SharepointList 

    2. Distinct(AccountNameLookup,Title) - Items of Combobox 

    3.  Sharepoint List

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 02 Dec 2020 at 16:47:09
    Re: Issues with Combobox default option

    I still don't get it ... I need infos about: 

    1. Items property in Gallery;

    2. Please provide formula for AcountNameLookUp  ? Is a list ? Is a collection ?

    3. How did you defined LookUp ? Is a list ? Is a collection ?

  • gvrspk Profile Picture
    42 on 02 Dec 2020 at 16:07:27
    Re: Issues with Combobox default option

    Thisitem.AccountName is showing error in default and defaultselecteditems 

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 02 Dec 2020 at 15:14:47
    Re: Issues with Combobox default option

    @gvrspk ,

     

    It seems that is a problem with AccountNameLookup and LookUp(?!) collections (or data source).

    Also ... from my undestanding the DefaultSelectedItems formula should easily be: ThisItem.AccountName.

  • gvrspk Profile Picture
    42 on 02 Dec 2020 at 14:18:09
    Re: Issues with Combobox default option

    Hi gabibalaban, 

     

    Thanks for quick response. 

    Attached screenshot for your reference. 

     

    based on combobox1 & 2 , dropdown will display automatically after saving values in sharepoint for the next edit its not picking but default selected values are displaying in combobox1 but  i dont know how to set default values. 

  • CU-18081211-6 Profile Picture
    9,266 Moderator on 02 Dec 2020 at 13:02:12
    Re: Issues with Combobox default option

    Hi @gvrspk ,

    Please provide a screenshot with your configuration, i don't figure it out what are you doing there 😊 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 885 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 571

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 352 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete