<$list filter="[all[current]fields[]] -modified -created -text -title -tags -type -list" variable=field>
''<<field>>'': <$edit-text field=<<field>> tag="input" size=20/><br/>
</$list>
<details open><summary>Display fields</summary><$list filter="[all[current]fields[]] -title -text -tags -modified -created -creator -modifier" variable=item>''<$text text=<<item>>/>'': <$transclude field=<<item>>/><br></$list></details>
The other solution may be to add a little wikitext script like below
- create a new tiddler, name it whatever you like
- tag it with $:/tags/ViewTemplate
- put the below into the text field
<details open><summary>Display fields</summary><$list filter="[all[current]fields[]] -title -text -tags -modified -created -creator -modifier" variable=item>''<$text text=<<item>>/>'': <$transclude field=<<item>>/><br></$list></details>
Save and see its effect on other tiddlers.
The details is a standard html5 tag and create an slider, you can change open to close to set the initial status as closed.