+ Start a Discussion
nishad basha 7nishad basha 7 

How to display the error message when i click submit button in user required fields?

my requirement is creating visualforce page when i click sumbit button new user should be created. but  i need now user enter a values click submit button it will be display on error message.give one example for user object.
sandeep sankhlasandeep sankhla
Hi Nishad,

What exactly you need...

On click of button you want to validate your data in java script and if not proper then you need to throw an error message.
Or, You are using input field and if that is not field you need to throw error messgae..

error message you can show via apex:pagemessages..

Please elaborate little more so I can help you out..