+ Start a Discussion
balraj singh 33balraj singh 33 

What is the code doing here , can some please explain.Is it to allow some popup for "Authentication'" where we select Allow or deny for login

<apex:outputPanel rendered="

{!NOT(ISPICKVAL($User.UserType,'Guest')) }">

<script> window.location.href = "./"; </script> </apex:outputPanel>
Best Answer chosen by balraj singh 33
Suraj Tripathi 47Suraj Tripathi 47
Hi balraj,
You are rendering the output panel when the value selected in the user type picklist is other than the 'Guest'.
That means this output panel will run only when the user type picklist have value other then Guest.
Coming inside there is a script.
Basically, window.location.href  this is used to get the URL of the current page.

If this helped you please mark it as the best answer.
Thank you!
Suraj Tripathi.