Avatar of BhanuSVS
BhanuSVS
Flag for India asked on

How to hold cursor position in the same field if it is having validation errors?

Dear Experts,

I have a requirement, if the first field having validation error, then the system should not allow us to go to next field in the screen. the cursor position should be hold in the same field.

Please provide me the solution to achieve this, with Java Script/Ajax/JSF.

In my last query, experts are advised me to use PhaseListener, but it showing validation errors, but it is not restricting, it is allowing to go to next field.

kindly help me.
Java EEJavaScriptAJAX

Avatar of undefined
Last Comment
BhanuSVS

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Dobromir Yordanov

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
BhanuSVS

ASKER
Dear CrackPack,

Thanks a lot for your suggestion.

I am new to JavaScript, please give me complete code , i.e all functions code, so i can understand and apply to my JSF application.
BhanuSVS

ASKER
Dear CrackPack,

Complete code in the sense, i am expecting a simple example, with code.

Please do needful.
BhanuSVS

ASKER
Please try to respond for the second time.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23