You need to sign in to do that
Don't have an account?
Ab
Custom button | Query on account | if-else condition | error message
Hello,
I have a checkbox on Account object "CustomCheck__c"
In the quote, i have a custom button
window.location.href='/apex/QUOTES__Quote_Get?&id={!Quote.Id}&retURL=//{!Quote.Id}&cancelURL={!Quote.Id}';
I want to execute this URL only when the checkbox on Account is unticked else display an error message
How can i acheive it ?
thanks for suggestions
I have a checkbox on Account object "CustomCheck__c"
In the quote, i have a custom button
window.location.href='/apex/QUOTES__Quote_Get?&id={!Quote.Id}&retURL=//{!Quote.Id}&cancelURL={!Quote.Id}';
I want to execute this URL only when the checkbox on Account is unticked else display an error message
How can i acheive it ?
thanks for suggestions
Try this code, it will work.
BestRegards,
Dayakar.D
All Answers
Try this JS code.
Let me know if this helps.
Try this code, it will work.
BestRegards,
Dayakar.D