+ 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 salesforce.com 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.