function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RAJU_DEEPRAJU_DEEP 

Unable to logout through visualforce page.

Hello,

           I am having a form with three input fields in which first field is set required="true" and a link to log out from the salesforce. So, when ever i click on the logout link the required field shows the error:Error: You must enter a value .But before setting the field property required="true" it was working fine.

 

 

So, is there any way to solve this issue.

 

Thanks in advance.

Raju.

 

Best Answer chosen by Admin (Salesforce Developers) 
aballardaballard

You can use the attribute immediate='true' on the logout link to force the action to be performed before validations are done.

All Answers

aballardaballard

You can use the attribute immediate='true' on the logout link to force the action to be performed before validations are done.

This was selected as the best answer
RAJU_DEEPRAJU_DEEP

Hello,

           Thanks for your reply, it works fine.

 

Regards

Raju.