Transition not working in Web application | Community
Skip to main content
Prasanna_Soni
Level 4
April 30, 2021
Solved

Transition not working in Web application

  • April 30, 2021
  • 1 reply
  • 931 views

The Next is working as expected but when it comes to Update flow its not working. the page is just getting refresh and comes back to default  page. 

 

 

Code for 2 buttons :- 

 

<div class="d-grid gap-2 d-md-flex justify-content-md-end">
<div class="d-grid gap-2 d-md-flex justify-content-md-center"><button class="btn btn-lg btn-outline-secondary" id="input161787719926142" style="min-width: 150px;" type="submit" data-nl-localizable="true" data-nl-type="action" data-nl-action="update"> Unsubscribe</button></div>


<div class="d-grid gap-2 d-md-flex justify-content-md-end"><button class="btn btn-lg btn-primary" id="input161787719926141" style="min-width: 150px;" type="submit" data-nl-localizable="true" data-nl-type="action" data-nl-action="next"> Next </button></div>
</div>

</div

 

Property Page2 activity 

 



This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amit_Shinde

Hi @prasanna_soni,

 

Not sure why it is not working. You can try the below logic. It's working for me. 

 

<html>
<head>
<script>
function myFunction(selectedButton){
document.controller.submit("next", "", selectedButton); ;
}
</script>
</head>
<body style="" class="">
<form>
<div class="d-grid gap-2 d-md-flex justify-content-md-end"><button class="btn btn-lg btn-primary" id="input161787719926141" style="min-width: 150px;" onclick="return myFunction('next')" type="submit"> Next </button></div>
<div class="d-grid gap-2 d-md-flex justify-content-md-center"><button class="btn btn-lg btn-outline-secondary" id="input161787719926142" style="min-width: 150px;" onclick="return myFunction('update')" type="submit"> Unsubscribe</button></div>
</form>
</body>
</html>

 

Thanks,

Amit

1 reply

Amit_ShindeAccepted solution
Level 3
May 1, 2021

Hi @prasanna_soni,

 

Not sure why it is not working. You can try the below logic. It's working for me. 

 

<html>
<head>
<script>
function myFunction(selectedButton){
document.controller.submit("next", "", selectedButton); ;
}
</script>
</head>
<body style="" class="">
<form>
<div class="d-grid gap-2 d-md-flex justify-content-md-end"><button class="btn btn-lg btn-primary" id="input161787719926141" style="min-width: 150px;" onclick="return myFunction('next')" type="submit"> Next </button></div>
<div class="d-grid gap-2 d-md-flex justify-content-md-center"><button class="btn btn-lg btn-outline-secondary" id="input161787719926142" style="min-width: 150px;" onclick="return myFunction('update')" type="submit"> Unsubscribe</button></div>
</form>
</body>
</html>

 

Thanks,

Amit