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
Ross Gilbert 31Ross Gilbert 31 

throw popup validation error from embedded vf page on case detail page

Salesforce deprecated the ability to use javascript in hyperlink formulas.  So I need to replace what I used to be able to do declaratively with code.  Basically by I think keeping a formula field, but clicking the hyperlink formula takes the user to a visualforce page with a controller, where I can do the validation.

So the use case is: user clicks hyperlink in formula field on case x>if case x is blank in field y, the user gets a popup error message telling them they need to fill in field y>once case x field y has a saved value, clicking the hyperlink takes the user to the actual link (eg or whatever the link is.

I'm looking through the documentation now and trying to get something working but if anyone's run into this before and has any sample code that might get this on the right track I'd appreciate it.  Thanks a lot.