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

Toggle value's need validating before advancing

Hey everyone,

 

  I am building an app and I need it to validate that the 2 toggles I have on a particular screen are in the true position before it will let the user advance.  How can I code this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi@Doddy83,

 

Based on the issue that you mentioned, do you want to verify that the Toggle value stays at the true position before proceeding to the next step?

Could you please share more about your scenario? @eka24 provided the correct direction. I assume that if both of the two Toggles are “true”, users can select in a ComboBox.

I have a test on my side, please take a try as below.

Set the ComboBox DisplayMode property as below

If(Toggle1.value=true&&Toggle2.Value=true,DisplayMode.Edit,DisplayMode.Disabled)

 On your side, a standard formula can be written as below

If(Toggle1.value=true&&Toggle2.Value=true,true,false)

 

Best Regards,

Qi

View solution in original post

3 REPLIES 3
Super User III
Super User III

Try:

If(Toggle1.Value=true And Toggle2.Value=true,"lll","TTTT")

Replace "lll","TTTT" Since you did not give all the details

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

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.

Community Support
Community Support

Hi@Doddy83,

 

Based on the issue that you mentioned, do you want to verify that the Toggle value stays at the true position before proceeding to the next step?

Could you please share more about your scenario? @eka24 provided the correct direction. I assume that if both of the two Toggles are “true”, users can select in a ComboBox.

I have a test on my side, please take a try as below.

Set the ComboBox DisplayMode property as below

If(Toggle1.value=true&&Toggle2.Value=true,DisplayMode.Edit,DisplayMode.Disabled)

 On your side, a standard formula can be written as below

If(Toggle1.value=true&&Toggle2.Value=true,true,false)

 

Best Regards,

Qi

View solution in original post

Community Support
Community Support

Hi@shant592,

Have you solved your issue?

If it solves your request, Mark it as a Solution to enable other users to find it.

Best Regards,

Qi

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (19,729)