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
MikeMikeMikeMike 

Please help!!!

I'm at my wit's end.  Here's my situation, I have a Custom button that runs an executable and returns a value in a separate window.  I need to make this conditional.  I created a '.txt' file with an Error Message and would like to display this file if the condition is not met.  After several attempts, here's what I have:
<script type="text/javascript">
//determine if a license key already exists
IF ISNULL( Asset.Station_License_Key__c )
// NO - go ahead and create one
{
"http://zugiis01/LicenseEXE/lgen.dll?ID={!Asset.Id}&USER={!User.Email}"
}
ELSE
// ALREADY EXISTS - display "no-go" message
{
"http://zugiis01/_index.php3?path=/MR_test"
}
</script>
 
This gives me a vague message, something about mixing scripts.
 
Please help me.  Thanks in advance,
 
Mike
JakesterJakester
You're going to have a much better chance of getting assistance in the developer forum: http://developer.salesforce.com

When you post there, may I suggest a better subject line? Something like "How to make a conditional return value from a custom button"? "Please help" is terribly, well, unhelpful.
MikeMikeMikeMike
Suggestion taken.  Thanks...........