cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
carem Helper III
Helper III

Keep Toggle Control format when Form in view mode

Hi everybody;

In View Mode, Toggle Control will be displayed as "FalseText" or "TrueText".

Any way to keep the original format of the toggle control with the switch button (can not edit, of course)?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Keep Toggle Control format when Form in view mode

Hi @carem ,

Do you want to keep the Toggle control as Edit mode within the Display form?

 

If you want to keep the Toggle control as Edit mode within the Display form, I afraid that there is no way to achieve your needs in PowerApps currently.

It is an known issue with the Toggle control within Display form -- The DisplayMode property of the controls within the Display form would be overrided by that from your Display form. Even though, you set the DisplayMode property of the Toggle control within the Display form to DisplayMode.Edit, it would still be displayed as Text.

 

As an alternative solution, you could consider set the DisplayMode property of the Toggle control in your Display form to following:

DisplayMode.Disabled

then the Toggle control would be displayed as a disable mode as below:

1.JPG

 

In addition, you could also consider use Radio control to display your "Yes/No" field value instead of the Toggle control. I have made a test on my side, please take a try with the following workaround:

1. Unlock the "Yes/No" field data card in your Display form.

2. Remove the original Toggle control, instead, add a Radio control within it.

3. Set the Items property of the Radio control to following:

["Yes", "No"]

Set the Default property of the Radio control to following:

If(
    ThisItem.'Yes/No Field' = true, "Yes", 
    ThisItem.'Yes/No Field' = false, "No"
)

2.JPG

 

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

6 REPLIES 6
cds Helper V
Helper V

Re: Keep Toggle Control format when Form in view mode

I think I can speak for everyone on this:

Wat

 

 

Switch Button?

carem Helper III
Helper III

Re: Keep Toggle Control format when Form in view mode

No, I mean the toggle itself.

 

Screen Shot 2019-11-07 at 12.18.57 PM.png

cds Helper V
Helper V

Re: Keep Toggle Control format when Form in view mode

In View Mode, Toggle Control will be displayed as "FalseText" or "TrueText".

Any way to keep the original format of the toggle control with the switch button (can not edit, of course)

Your question doesn't make sense..

Any way to keep original format? Yes, don't change it.
With switch button...what are you switching?

Eelman Resident Rockstar
Resident Rockstar

Re: Keep Toggle Control format when Form in view mode

use Disabled not View

Community Support
Community Support

Re: Keep Toggle Control format when Form in view mode

Hi @carem ,

Do you want to keep the Toggle control as Edit mode within the Display form?

 

If you want to keep the Toggle control as Edit mode within the Display form, I afraid that there is no way to achieve your needs in PowerApps currently.

It is an known issue with the Toggle control within Display form -- The DisplayMode property of the controls within the Display form would be overrided by that from your Display form. Even though, you set the DisplayMode property of the Toggle control within the Display form to DisplayMode.Edit, it would still be displayed as Text.

 

As an alternative solution, you could consider set the DisplayMode property of the Toggle control in your Display form to following:

DisplayMode.Disabled

then the Toggle control would be displayed as a disable mode as below:

1.JPG

 

In addition, you could also consider use Radio control to display your "Yes/No" field value instead of the Toggle control. I have made a test on my side, please take a try with the following workaround:

1. Unlock the "Yes/No" field data card in your Display form.

2. Remove the original Toggle control, instead, add a Radio control within it.

3. Set the Items property of the Radio control to following:

["Yes", "No"]

Set the Default property of the Radio control to following:

If(
    ThisItem.'Yes/No Field' = true, "Yes", 
    ThisItem.'Yes/No Field' = false, "No"
)

2.JPG

 

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

carem Helper III
Helper III

Re: Keep Toggle Control format when Form in view mode

Thanks for your very detail instructions.

It save me time.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

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