cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shant592
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
v-qiaqi-msft
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

Best Regards,
Qi

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

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.

v-qiaqi-msft
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

Best Regards,
Qi

View solution in original post

v-qiaqi-msft
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

Best Regards,
Qi

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,066)