cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ilde
Helper II
Helper II

Visible label condition from Toggle and DDL

HI ALL,

 

I'm trying to make a test visible only when a ddl is equal to yes and the Toggle is instead set to OFF.
If this combination happens I have to see the label "Please adjust the TOGGLE"
my DDL is called SETT and my toggle is called TGL SETT.
I thought I was creating variables but the syntax is wrong.

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

Your visible property on your label should be something like:

 

 

If(
   Sett.selected.value = "yes" && 'TGL SETT' = false, true,
false

)

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

8 REPLIES 8
eka24
Super User III
Super User III

Try this in the Text property of the Label:

If(Sett.Selecred.Value ="Yes" And TGLSETT.Value ,"Adjust the Toggle","")

 

If there are issues,show a screenshot

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

JR-BejeweledOne
Super User
Super User

Your visible property on your label should be something like:

 

 

If(
   Sett.selected.value = "yes" && 'TGL SETT' = false, true,
false

)

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

Ilde_1-1620390056384.png

HI Eka

unfortunately it doesn't work
this is the message

not work....

eka24
Super User III
Super User III

Your screenshot does not show the formula

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Update the formula to this:

 

If(
   Sett.selected.value = "yes" && 'TGL SETT'.Value = false, true,
false

)


If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Ilde
Helper II
Helper II

 

Hi Eka 

Datacard value is The DDL

Ilde_0-1620394579009.png

 

 

RandyHayes
Super User III
Super User III

@Ilde 

Your Visible property of the Label for the "Please adjust the TOGGLE" should be:

 

SETT.Selected.Value="Yes" && TGLSETT.Value

 

 

I hope this is helpful for you.

 

 

EDIT: Sorry had a typo in the formula.  It is corrected.  Also, you need not use the true false extra stuff in an if statement, it is redundant and just not needed.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (27,736)