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

powerapps toggle not initialized

Hi There,

 

do you know if there is a way to have a toggle not initialized ?

it's for a quality app and if the initial state of the toggle was between 0 and 1, it would allow me to ignore those within this state

i'm assuming there is a workaround that is to create an evaluation input with the 3 states, isn't it ?

 

thanks

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User II
Super User II

@GeekAlf_Pro 

 

We do not know of any other way than using a variable like in the below:

 

6a.gif

 

 

In the above , the following was done

 

1) OnVisible of Screen1 :

Set(_ToggleInit,false)

 

2) Label1 Text Property:

_ToggleInit

 

3) Toggle1 OnChange Property:

If(!_ToggleInit,Set(_ToggleInit,true),false)

 

View solution in original post

Advocate II
Advocate II

hi @poweractivate 

 

Thanks for your quick response, it's a clever way of doing !

ideally, i'd prefer the user to see he hasn't look at the line, but your solution will help me

 

have a good day

View solution in original post

3 REPLIES 3
Super User II
Super User II

@GeekAlf_Pro 

 

We do not know of any other way than using a variable like in the below:

 

6a.gif

 

 

In the above , the following was done

 

1) OnVisible of Screen1 :

Set(_ToggleInit,false)

 

2) Label1 Text Property:

_ToggleInit

 

3) Toggle1 OnChange Property:

If(!_ToggleInit,Set(_ToggleInit,true),false)

 

View solution in original post

Advocate II
Advocate II

hi @poweractivate 

 

Thanks for your quick response, it's a clever way of doing !

ideally, i'd prefer the user to see he hasn't look at the line, but your solution will help me

 

have a good day

View solution in original post

@GeekAlf_Pro 

 


@GeekAlf_Pro wrote:

ideally, i'd prefer the user to see he hasn't look at the line, but your solution will help me

 


Yes you could try this:

 

Color property of the toggle, set to:

If(!_ToggleInit,RGBA(0,0,0,0.1),RGBA(0, 0, 0, 1))

 

When it is not initialized, it visually indicated it is not by using the very faint color. If it has been clicked at least once, then it will be the much more solid color.

 

See example below:

 

6b.gif

 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,589)