Multistage Form Auto Switch States

@russian-dima I’ve used this same code above for each stage on my form, changing the function numbers sequentially. The problem the form is only gathering the answer to the 1st question on the 1st stage of the form.