You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if there's response data, checkbox is checked, but response already includes this value, no change
84
+
if(state[field].includes(value)){
85
+
console.log(
86
+
`#1 normal existing value branch triggered for value '${value}'`
87
+
);
88
+
returnstate;
89
+
// else if the value is an 'Other' submission but we've already collected an 'Other' response (i.e. one not belonging to pre-set answers), replace it
90
+
// NB. the re-selection of checkboxes on returning to a page are not trusted events, but those relating to non-'Other' options are caught by previous branch
91
+
}elseif(!trusted&&otherSubmissions.length>0){
92
+
console.log(
93
+
`#2 changed other submission branch triggered for value '${value}'`
0 commit comments