Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Using Toggles to make items unvisible and visiable

Like (0) ShareShare
ReportReport
Posted on 5 Mar 2020 11:51:09 by

Hey guys,

 

I have created a form that include toggles, when I turn the toggle on (Blue) the field appears and I can fill it.

The issue is: when I want to display the form, all the toggles are turned to off and and I became unable to see the text in the fields that has been filled-up (unless I click "edit all" and turn it on again). How can I keep it on, so when I display the item I can find everything visible?

 

See the following to understand more.

 

1.PNG

 

Unable to see the toggles and the fields.

2.PNG

 

 

I clicked Edit to be able to turn it on again and see the items.

3.PNG

 

Here is the settings of one of the toggles (All of them are the same).

4.PNG

 

and here is the condition I added to each field (with different toggles' numbers for each)

5.PNG

 

 

It works perfect except when I try to display

  • Verified answer
    Community Power Platform Member Profile Picture
    on 09 Mar 2020 at 10:55:48
    Re: Using Toggles to make items unvisible and visiable

    1- I put it in the toggle's default property as you mentioned.

    2- I added If Statement with true and false to make visible.

    3- I added The Name of Column directly (instead of SharePointIntegration.Selected.ColumnName).

     

    And now I guess it works perfectly.

     

    This is how it looks in default property now:

    If(!IsBlank('ESD Representative '), true, false)

     

     

    Thanks for your help.

  • Community Power Platform Member Profile Picture
    on 09 Mar 2020 at 10:22:22
    Re: Using Toggles to make items unvisible and visiable

    ...

  • Community Power Platform Member Profile Picture
    on 09 Mar 2020 at 08:56:05
    Re: Using Toggles to make items unvisible and visiable

    Hi @v-siky-msft,

     

    I will try it 

  • Verified answer
    v-siky-msft Profile Picture
    on 09 Mar 2020 at 08:35:54
    Re: Using Toggles to make items unvisible and visiable

    Hi @Anonymous ,

     

    OK, each toggle corresponds to each column, right?

    set Toggle Default property based on whether the column value is blank:

    If the Column is Text/Number/Date: !IsBlank(SharePointIntegration.Selected.ColumnName)

    If the Column is Choices/LookUp: !IsBlank(SharePointIntegration.Selected.ColumnName.Value)

    If the Column is Person/Group: !IsBlank(SharePointIntegration.Selected.ColumnName.Claims)

     

    Hope this helps.

    Sik

  • Community Power Platform Member Profile Picture
    on 09 Mar 2020 at 07:26:58
    Re: Using Toggles to make items unvisible and visiable

    Hi @v-siky-msft,

     

    I do appreciate your reply. As you see in the below the picture, even the empty fields showed up.

     

    While, in my situation I only wanna show the fields that has been filled. I'd be glad if there is a code shows only the filled-up fields.

     

    unvisible.PNG

  • v-siky-msft Profile Picture
    on 06 Mar 2020 at 03:28:51
    Re: Using Toggles to make items unvisible and visiable

    Hi @Anonymous 

     

    If you want to fields to be visible when viewing the record, you have to set the Default property of toggles that links to fields you want to be visible to true.

    Snipaste_2020-03-06_11-24-09.png

    Test Result:

    Snipaste_2020-03-06_11-26-23.png

    Hope this helps.

    Sik

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard