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 / Sharepoint form: codep...
Power Apps
Answered

Sharepoint form: codependent comboboxes?

(0) ShareShare
ReportReport
Posted on by 878

Jeez, they finally fixed PowerApps...Couldn't do nothing all morning.

Anyway. What I'm trying to acheive is the following: I'm editing a Sharepoint list form, and two of the columns come from Comboxes (Product and Product Number). These comboboxes take their data from an Excel table with two columns named the same (Product and Product Number). 

Is there a way that if the user selects Product XXX it automatically chooses for Product Number the data correspondent to that in the excel table? I want it to be both ways, as well.

In chatGPT it recommended using the LookUp + Filter functions, but I couldn't manage for it to work.

Help appreciated!

Categories:
  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    When you say you want it to be both ways, that will create a circular reference. What do you mean by that?

  • WorkingRicardo Profile Picture
    878 on at

    By circular you mean a never ending loop? Damm...

    I mean that the user can choose whether to input the Product name or the Product Number (big company and as of now no one uses the same data input). I mean, after he inputs 1 he should not touch the other field and just save the form.

    So, there's no way to make it like I'm trying to?

     

    I also thought that it could maybe be that when you choose the Product number, this data goes to a text box, which then the Product name field somehow grabs and uses it? But dunno if that's possible or even how to go about this.

  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    You can set the Product Name based on the Product Number.

     

    If you need the Product Number to set the Product Name as well, then it's going to be a never-ending loop of them trying to set each other.

     

    Can you post a screenshot of your form and then one of us can direct you with some code to enter?

  • WorkingRicardo Profile Picture
    878 on at

    It's in Spanish but I highlighted the fields that are troubling me. So in the end, what i want is that everything matches the Excel doc. But I see your point and think this way could be impossible...

    Is there a way then that based on the info user selecs in ex Product, it auto fills the Product Number directly in the sharepoint witouth having to do something in the form?

     

    Or, if you see another way to get this result, would really appreciate it.

    example2.JPG
    example.JPG
  • Verified answer
    charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    Here's what you should do. In the OnChange property of each combobox, set a local variable, like so:

    charlessexton_0-1700134433183.png


    Then in the DefaultSelectedItems property, set it to that variable, if it exists (which is what the Coalesce function checks):

    charlessexton_1-1700134489578.png


    Now I can change either dropdown and it will update the other, but without a circular reference.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard