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.
Unable to see the toggles and the fields.
I clicked Edit to be able to turn it on again and see the items.
Here is the settings of one of the toggles (All of them are the same).
and here is the condition I added to each field (with different toggles' numbers for each)
It works perfect except when I try to display
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.
...
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
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.
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.
Test Result:
Hope this helps.
Sik
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional