You need to sign in to do that
Don't have an account?
MikeMike
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>
//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
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.