How to make button stop working when radio button question not answered?
Hi,
I am creating a PDF form survey with yes/no radio button questions. There is one question and "next" button per page that makes the next page appear. The question is called "Q1". I want to make the button do nothing until they answer.
For example, if Q1 was on page 6, this code might keep them on the same page if they don't answer:
var v = this.getField("Q1").valueAsString;
if (v==" ") this.pageNum = this.pageNum = 5;
else this.pageNum = 6;
(This doesn't work - it always goes to page 7, even if they didn't respond)
Any ideas on how to fix this?
Thanks!
