cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Dropdown issue based on another field

Hi,

I am currently building an app and stuck on a dropdown issue.
I am trying to change the dropbox option Load Compliant based on a text value.

 

So i am calculating each question to give me a number of either 1 or 2 on a text field. If(DataCardValue28.Value=true,"1","2")

Then i am summing all of the texts fields to give me a total score:  Sum(Label9,Label10)

That all works fine. 

The issue is the dropdown changing, based on the number. I have tried using running a if statement based on the sum total=<20,"Yes","No) but that does not work. I just want the dropdown to change to yes if the sum is <20 and no if it is >20.

Cheers

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Dropdown issue based on another field

Hi @gman91,

Could you please share a bit more about the error message within your Load Compliant Drop box?

Further, could you please share more details about the formula within the Items property of the Load Compliant Drop box?

Based on the screenshot that you provided, I think your Load Compliant Drop box is a Combo Box control rather than a Dropdown control.

I think there is something wrong with the formula that you mentioned, I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Set the Items property of the Load Compliant Combo Box to following:

["Yes", "No"]

Set the DefaultSelectedItems property of the Load Compliant Combo Box to following:

If(
    Value(Label1.Text)<20, 
    {
        Value: "Yes"
    }, 
    {
        Value: "No"
    }
)

On your side, you should type:

If(
    Value(Label1.Text) < 20, 
    {
        Value: "Yes"
    }, 
    {
        Value: "No"
    }
)

Or

If(
    Value(Label1.Text) < 20, 
    LookUp('DataSource', DisplayColumn = "Yes"), 
    LookUp('DataSource', DisplayColumn = "No")
)

Note: The DataSource represents the data source formula you typed within the Items property of the Load Compliant Combo Box control. The DisplayColumn represents the column you used as a Display value within the Load Compliant Combo Box.

 

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: Dropdown issue based on another field

Hi @gman91

 

Can you send us some screen prints of the dropdown formula, and the label formulas?

Highlighted
Frequent Visitor

Re: Dropdown issue based on another field

@DavesTechTips, please see attached.


Highlighted
Frequent Visitor

Re: Dropdown issue based on another field

 
Highlighted
Community Support
Community Support

Re: Dropdown issue based on another field

Hi @gman91,

Could you please share a bit more about the error message within your Load Compliant Drop box?

Further, could you please share more details about the formula within the Items property of the Load Compliant Drop box?

Based on the screenshot that you provided, I think your Load Compliant Drop box is a Combo Box control rather than a Dropdown control.

I think there is something wrong with the formula that you mentioned, I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Set the Items property of the Load Compliant Combo Box to following:

["Yes", "No"]

Set the DefaultSelectedItems property of the Load Compliant Combo Box to following:

If(
    Value(Label1.Text)<20, 
    {
        Value: "Yes"
    }, 
    {
        Value: "No"
    }
)

On your side, you should type:

If(
    Value(Label1.Text) < 20, 
    {
        Value: "Yes"
    }, 
    {
        Value: "No"
    }
)

Or

If(
    Value(Label1.Text) < 20, 
    LookUp('DataSource', DisplayColumn = "Yes"), 
    LookUp('DataSource', DisplayColumn = "No")
)

Note: The DataSource represents the data source formula you typed within the Items property of the Load Compliant Combo Box control. The DisplayColumn represents the column you used as a Display value within the Load Compliant Combo Box.

 

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Dropdown issue based on another field

Thank you that worked.

Thanks so much!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,471)