cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Using Toggles to make items unvisible and visiable

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

2 ACCEPTED SOLUTIONS

Accepted Solutions

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

View solution in original post

Anonymous
Not applicable

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.

View solution in original post

6 REPLIES 6
v-siky-msft
Community Support
Community Support

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

 

 

Anonymous
Not applicable

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

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

View solution in original post

Anonymous
Not applicable

Hi @v-siky-msft,

 

I will try it 

Anonymous
Not applicable

...

Anonymous
Not applicable

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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (37,309)