Hi @Prasanna_Soni,
Sharing sample code. Please try the below logic.
<html>
<head>
<script>
function myFunction(selectedButton){
if(selectedButton=="Button1")
{
// Add javascript Code & 1st transition
document.controller.submit("next", "", "next"); ;
}
if(selectedButton=="Button2")
{
// Add javascript code & 2nd transition
document.controller.submit("next", "", "next2"); ;
}
}
</script>
</head>
<body style="" class="">
<form>
<p>Please click the button</p>
<div class="submit-field"><span>></span><button id="Button1" onclick="return myFunction(this.value)" value="Button1">Button1</button></div>
<div class="submit-field"><span>></span><button id="Button2" onclick="return myFunction(this.value)" value="Button2">Button2</button></div>
</form>
</body>
</html>
Thanks,
Amit