CCALI / a2jviewer

This is the repo for the A2J Viewer
https://www.a2jauthor.org
Other
5 stars 8 forks source link

Checkboxes not setting unchecked to `false` #57

Open mikemitchel opened 4 years ago

mikemitchel commented 4 years ago

TF Vars associated with checkbox field types should be set to false if unchecked when the user navigates to the next page. Unvisited pages should leave those TF Vars as undefined so that authors can check agains hasanswered macro.

janebitovi commented 2 years ago

switching to a more important task, dumping exploration notes:

Test guide: aaa.zip

open author preview from the first page

document.querySelector('a2j-pages').viewModel.appState.answers.tf2.values[1] // undefined

open adv nav panel, skip to 3rd page (note: page 2 is marked as skipped)

document.querySelector('a2j-pages').viewModel.appState.answers.tf2.values[1] // false

^ that should(?) still be undefined since the field is on page 2

This issue was made before we could skip pages though... so I'm not entirely sure: 1) what this was talking about at the time 2) if the value really should be undefined still

haven't dug into why it's getting set to false when skipped, will investigate further when I can