I have this web site that has a dynamic page to acquire additional information about new members.
This is all working fine.
I coded a mean of finding out if the logged user is new to the site by checking the 8 required fields if something has been entered.
I would like to as soon as they get to that dymanic page with the 8 input fields and check if they are empty then stay on the dynamic page so they enter the required infos. If they field are already been filledbcause they are not a new memeber, then redirect them to my home page using wixLocation.to.
This all works fine except that as soon as a create a button to direct the existing member to change something on his profile, I have him to go to my dynamic page but since I have a wixLocation.to in the Ready section, it goes back to my home page.
Any ideas how I can skip my dymanic page (form) is all the required info is there and have a button that will redirect the member to this dynamic page for update without automatically go to the home page.