We recommend to be careful with putting data into "normal" variables by using put(.., .., true)
, because there is a substantial risk of overwriting data. We still have implemented this option to allow for specific situations. If you are sure, you do not overwrite other data, that may be one.
Actually, we did not consider using this for filters, but it's an interesting idea!
However, the filters based on those valued do not activate on this or later pages.
The filters become active when the responses for the variables are read. One sledge hammer workaround would be to actually include the question, but hide it:
put('AB01', 3, true);
html('<div style="display: none">');
question('AB01');
html('</div>');
This should work without unintended effect. Please give it a try.
We will in the meantime check, if it's possible to trigger the filter-evaluation when a value is set via put()
. But I cannot promise that this will be possible before mid of November.