web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Toggles to make ...
Power Apps
Answered

Using Toggles to make items unvisible and visiable

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    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

     

     

  • Community Power Platform Member Profile Picture
    on at

    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

  • Verified answer
    v-siky-msft Profile Picture
    on at

    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 at

    Hi @v-siky-msft,

     

    I will try it 

  • Community Power Platform Member Profile Picture
    on at

    ...

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard