Open a form in a specific page

Hi
I’ve a form with 10 pages (in step format)
how can I open a form in a specific page?
thanks

I wrote this a while ago, it’s not robust, it’s just hack (put it in the onload event of the form), but it should do the trick. You have to click each page one by one unfortunately - scriptcase nuance, my example I have 4 steps, the 4th page will be the one you end up on. Feel free to shorten the delay from 500ms to something shorter, you’ve got 10 pages so it could take a bit of time!

The idea for me was to continue where the user left off in the “wizard” when they return later. If you do use or and make it more robust, feel free to share your code.

ta,
Arthur

?>
<script>
function shiftonepage(ms, identifier) {
	return new Promise(resolve => {setTimeout(function(){
		document.getElementById(identifier).click();
		resolve("Completed");}, ms)});
}
 
async function movetopage() {
	await shiftonepage(0, "sc-ui-form-step-0");
	await shiftonepage(500, "sc-ui-form-step-1"); 
	await shiftonepage(500, "sc-ui-form-step-2"); 	
	await shiftonepage(500, "sc-ui-form-step-3"); 	
}	
 
  window.addEventListener('load', function() {
	movetopage();
  });
</script>
<?php