cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RoScha
Helper V
Helper V

Switch toggle button through a SharePoint column

Hello community.

I have a SharePoint List (SP). In this SP list I have a column named "KD-Typ". The value True or False is saved in this column.

I call up this column via a screen with a shape. The value of the column is shown to me in a datacard.

Now I would like to switch a toggle button depending on the value from this column.

But I can't do it.

Can someone tell me how to solve this?

Best regards
RoScha

2 ACCEPTED SOLUTIONS

Accepted Solutions

In the default property of the toggle control enter

 

If(galKunde_scrSucheKunde.selected.KD_Typ = false, false,true)

View solution in original post

You have to make a small adjustment in your formula and it will work.

And the customization looks like this:
old: If(galKunde_scrSucheKunde.selected.KD_Typ = false, false,true)
New: If(galKunde_scrSucheKunde.selected.KD_Typ = "false", false,true)

 

Many thanks @JordanDeVan 
a little further in the app. It's getting slow. I'm very happy about that.

 

Best regards
RoScha

View solution in original post

7 REPLIES 7
mdevaney
Super User
Super User

@RoScha 

I don’t understand your goal from the description of the problem.  Can you please provide a screenshot?

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

JordanDeVan
Advocate I
Advocate I

You're going to have to edit the default property of the toggle button. I normally use an If function,

 

How are you displaying the data in the app? In a gallery?

RoScha_0-1600008316943.png

If the value "KD-Typ" is false, then the toggle button should be on "Private customer".
If it says true then the toggle button should be on "corporate customer".

That is the starting point

What do you have in the items property of your form?

@JordanDeVan this is in the items property:

 

RoScha_0-1600112489041.png

 

In the default property of the toggle control enter

 

If(galKunde_scrSucheKunde.selected.KD_Typ = false, false,true)

You have to make a small adjustment in your formula and it will work.

And the customization looks like this:
old: If(galKunde_scrSucheKunde.selected.KD_Typ = false, false,true)
New: If(galKunde_scrSucheKunde.selected.KD_Typ = "false", false,true)

 

Many thanks @JordanDeVan 
a little further in the app. It's getting slow. I'm very happy about that.

 

Best regards
RoScha

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

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