Thank you for your reply.
I am not actually using a Google Form. I referred to that to highlight the feature of a multi-step forms which I would like to replicate using html form templates in GAS.
Squarespace is a website builder which enables one to import external html, css and js via an iframe. As it happens, one can import a Google form in this way as well as a html form template in GAS.
I am writing the form in a GAS html file, creating a template in Code.gs, using Html service to create from file and then deploying as a web app and copying the resulting link into an iframe.
As it is part of (Squarespace) page, I am using an extra bit of code appended to the Html Service call and the first form displays OK.
the html file includes a js script that adds an event listener that prevents the form''s default behaviour when it is submitted, ie the form''s data is NOT posted to the Web app url. Instead a script runner calls a server function which takes the form object and sends the data to a Google sheet. This works ok too.
Where I am having difficulty, is getting the .withSuccessHandler () in the script runner to replace the first form in the iframe with the next one.
I cannot be the first person to attempt this - even if we leave the specific context of Squarespace out of the equation.
I am looking for a tutorial on how to build a multi-step form in GAS that is deployed as a Web app and displayed on a page as an iframe.
A slight refinement is that in a multi-step Google Form, the user''s data is held and only posted for processing once the whole form is submitted. I want to use GAS instead so that each form actually submits the responses so that I can interact with/process them and then, depending upon what the values are, display form2 or skip to form3 etc.