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

can a validation be done on load

i have an application with 4 tabs(each tab has a page attached to it), is it possible to check on load if the user has right previlages from an external webservice.

If the user doesnot have any previlages the application should not load (it should show an Error page)like if the login for salesforce is treated as vilidation.

If it is not there in an external database application should not be loaded. Else all the application needs to be loaded





With the help of <action:support> you can call the method of controller on Page load. In that method check accesibility from external web service meanwhile show the loading image on VF page.


If user is authorized then show whatever is the requirement otherwise display an error.