Please see the great example for exactly that - https://www.wix.com/code/home/example/Multistage-Form