You need to sign in to do that
Don't have an account?
Cyberfire
Javascript button override
All,
I'm attempting to override a custom button that takes a user to an internal link - what I want to do however, is check to see if certain fields are blank or not before executing the link. What would I need to do in order to make this possible?
Rule be something like this:
If {!Primary Campaign Source} = null, do not navigate to link, instead, popup an alert box which says "This campaign is blank, blah blah etc".
Any takers?
I'm attempting to override a custom button that takes a user to an internal link - what I want to do however, is check to see if certain fields are blank or not before executing the link. What would I need to do in order to make this possible?
Rule be something like this:
If {!Primary Campaign Source} = null, do not navigate to link, instead, popup an alert box which says "This campaign is blank, blah blah etc".
Any takers?
All Answers
OK - this isn't a custom button, but it's simple to implement. You could create a formula field that contains a similar IF statement:
IF( FieldName = NULL, "ENTER ALERT MESSAGE" , HYPERLINK(http://www.somewhere.com, "Your URL"))
Basically this field will display a hyperlink if your desired field has a value, otherwise it'll display your alert. You could move this field to the top of the page in its own section for better user experience. You can add images to make it more effective.
Hope that helps,
Sati