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

View solution in original post

3 REPLIES 3
eka24
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.

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

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

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

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

Top Solution Authors
Top Kudoed Authors
Users online (61,211)