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 / Combo Box value based ...
Power Apps
Unanswered

Combo Box value based on another Combo Box in EditForm not working properly

(1) ShareShare
ReportReport
Posted on by 151

I have a PowerApp ticketing system (kinda like a bug tracker) that's based on a SharePoint list. There are two fields in the list that this question is about.

 

Watchers

  • Type: Person of Group
  • Multi-select allowed
  • In the EditForm, I'm using a ComboBox with 'Select Multiple = ON' and 'Allow Searching = ON'

 

Department

  • Type: Lookup
    • Based on another SP list with two columns: Title (Text) and Manager (Person).
    • This column displays Title, which is the Department Name.
  • Single-select
  • In the EditForm, I'm using a ComboBox with 'Select Multiple = OFF' and 'Allow Searching = ON'

 

In normal operation, the 'Watchers' field is so that someone can 'tag' a person in a ticket in my system. However, while keeping that functionality I would also like to make it so that whenever the user selects a department, that department manager is added to the 'Watchers' field.

 

In my EditForm, in the corresponding data card, I set the Watchers combo box items to the Watchers filed in my list.

 

WatchersComboBox.Items = Choices([MyTicketList].Watchers)

Then set the default value as follows:

WatchersComboBox.Default = 
LookUp(
 'EquipmentData-Departments', // This is the above mentioned secondary list the Department column of my list is based on
 ID = dcvDepartment.Selected.Id,
 Manager
)

 

I expected this to set the value of the WatchersComboBox whenver a selection is made from the Department combo box, but that doesn't happen.

 

By using a text table, I did verify that when a department selection is made, the LookUp function works and that I can pull the correct manager from the said secondary list.

MyTextLabel.Text =
LookUp(
 'EquipmentData-Departments',
 ID = dcvDepartment.Selected.Id,
 Manager
).DisplayName

 

So, what's the catch here? Why am I not getting the Watchers list updated properly? 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @SachS 

     

    Could you check if the 2 below threads help you as starting point?

    Combo box auto populated data not working with Patch or in email 

    Combo Box Selected Items - Lookup Field Issues 

     

  • JPiercefield Profile Picture
    85 on at

    You could simply go with a power automate flow. 

     

    When an item is created > condition (If department = department) > 

     

    Yes > Update Item (add the Manager to the watchers column)

    No > Whatever

     

    Thanks.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @SachS 

    If you are actually putting your formula on the Default property of a Combobox...then nothing will ever happen!  The Default property on a Combobox does nothing.  You will need to put the formula in the DefaultSelectedItems property instead.

     

    I hope this is helpful for you.

  • SachS Profile Picture
    151 on at

    @RandyHayes that was it!

    However, I still have sort of an issue with this approach. If there were multiple entries in the Watchers column, then at a later time someone edits the ticket in EditForm and changes the department, this will clear everything in the Watchers combo box and will assign the newly selected department as the sole watcher of the ticket.

     

    Any idea on how to get around that?

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @SachS 

    Yes, that is true based on your formula...what is it that you want to occur?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard