Confirmit is wiping out the content from masked fields

Here’s something I want to share with you, just to make you aware of how confirmit works when using masking.
I had a open text list with four answers and had the the last element hidden using a code mask script, nset(3);
The forth field I was updating from a script I placed before the question,
f(‘q1’)[‘4’].set(‘test’);

The issue was when checking data, even if the script was running correctly, there was nothing in the last field even if at the time the question was displayed, the “test” was still there, but after submitting (clicking on the next button) the content was wiped out.

So the conclusion is if the elements are masked, their content will be wiped out after you advance to the next question.
As a solution I moved the script after the question, and everything worked well.