Skip to content

Commit

Permalink
Added for loop to pass data
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-rose28 authored and joelanman committed Jul 19, 2023
1 parent 247cfb1 commit b25fc37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/v13/documentation/pass-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ You can show what the user entered later on like this:
</p>
```

Answers from checkboxes will appear with commas, like 'a,b,c'. To show them as a list, use a for loop:
```
<ul>
{% for country in data['countries'] %}
<li>{{ country }}</li>
{% endfor %}
</ul>
```

### Show answers in inputs

If a user goes back to a page where they entered data, they would expect to see the answer they gave.
Expand Down

0 comments on commit b25fc37

Please sign in to comment.