How to load a diferent view on button click

  • 18 November 2014
  • 1 reply
  • 1 view

Badge +2

Hi,

I have a smartform consisting of 3 views. On page load only View 1 is visible. On click of next button on form I have the logic to hide View 1 and display View 2.

My questions are -

 

1. On click of next button on View 2 how can I hide View 2 and show view 3, as the button is on the form.

2. When I click "Next", I want the cursor to go to the top of the next page.

 

Thanks for your help.


1 reply

Badge +10

Hi,

 

There are rules on the form which you can use to hide and show views.

Configure a new rule with the "When a control on a view raises an event" event and select the button on View2.

Configure a "Show a View Action for View" action (It will allow you to do this since you are editing the form's rules).

 

For the cursor going to the top there is a rule action where you can set the focus of a control using the "Execute a control's method" action.

Use this to set the focus to a control on the top of the form.

 

I hope this helps!

 

Regards,

JohanL

Reply