I have a button on my page. When it is clicked, I want the variable to be set to the value of 9 and the user is automatically moved to the next page. Interestingly, when I submit the code below and comment out one of the two lines, it works. So I can automatically move to the next page, but the variable does not get a 9. OR I can use the SetValue but the page won't submit. I'm thinking that I'm mixing up programming languages.
[% SetValue(mar1_r1,9) %];