1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-01-06 15:39:04 +00:00

Hide the responses to free text questions

This commit is contained in:
Jeremy Ruston
2025-07-30 12:01:19 +01:00
parent 3c55b58286
commit e05f956cc1
2 changed files with 11 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ tags: $:/tags/Global
<h1>
<$button class="tc-btn-invisible" style="text-align:left;">
<$action-setfield $tiddler=<<state>> $field="text" $value={{{ [<state>get[text]match[yes]then[no]else[yes]] }}}/>
<%if [<state>get[text]match[yes]] %>
<%if [<state>get[text]else[yes]match[yes]] %>
{{$:/core/images/chevron-down}}
<%else%>
{{$:/core/images/chevron-right}}
@@ -35,7 +35,7 @@ tags: $:/tags/Global
(<$text text={{{ [tag[Community Survey 2025]get<answerField>else[]!match[]] +[count[]] }}}/>)
</$button>
</h1>
<%if [<state>get[text]match[yes]] %>
<%if [<state>get[text]else[yes]match[yes]] %>
<ol>
<%if [<currentTiddler>get[question-type]else[]match[multiple-choice] %>
<$list filter="[tag[Community Survey 2025]get<answerField>else[]!match[]split[;]unique[]sort[]]" variable="answerText">

View File

@@ -0,0 +1,9 @@
title: $:/state/survey-2025/--439398230$:/2025 Community Survey/Questions/
other-use-cases: no
value-of-tw: no
diy-backup-info: no
wiki-setup-info: no
tw-customisations: no
project-strengths: no
project-weaknesses: no