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
Daniel Neufeld 6Daniel Neufeld 6 

Hello, I want to display a VF Page with a specific message when a value from a custom picklist on cases is selected, please help.

Hello, 

I have a custom picklist field on cases. When a specific picklist value is selected, I want to display a VF page on the case page with a specific message "Please do X". 

Any suggestions on how to do this? 



 
Nagendra Singh 35Nagendra Singh 35
Hi Daniel,

You can use javascript methods like window.open("link") in your visualforce page. Add the condition in your controller and pass the value to the javascript variable. 

<script language="javascript">
 var popBool = "{!popMessage}";
if(popBool)
{
window.open("Link");
 }
</script>

Add this visualforce page on case page layout and make it invisible by setting the height 0.  

Thanks!