It's a simple requirement , I have a survey with 2 pages , and I want to query back-end server when I click 'Next' button in the survey , if server return a true , then jump to next page , if false , stay in current page and do something else.
so what I need are:
- to handle the event of 'Next' button myself.
- trigger next or previous event manually.
and I have another problem , if I have 2 input element in survey , and I want to show validation message if the amount of these two input more than 100.
is there a way to do these 2 requirements?