You need to sign in to do that
Don't have an account?
Ravi23
command button click to show Apex page Messages and not to move below
I have a page where there are 6 questions and out of them one functionality is if I select other there is a text box opening where I need to enter what the other is in that text box.
All 6 questions are mandatory.
The challenge or issue here is say I did not fill the first question but filled all other and come to the 5 question where I select other a text box opens and I enter some details and click next since I did not fill first question it will throw me a error as expected but the cursor is going back to the text box always instead of stopping at the top of the page. Can some one help me in resolving this.
All 6 questions are mandatory.
The challenge or issue here is say I did not fill the first question but filled all other and come to the 5 question where I select other a text box opens and I enter some details and click next since I did not fill first question it will throw me a error as expected but the cursor is going back to the text box always instead of stopping at the top of the page. Can some one help me in resolving this.
You can use the following lines in code in your vf page.
put "jsCode" in your rerender property of comand button.
Let me know if you still need help.
Thanks,
Naval