You need to sign in to do that
Don't have an account?
Ravindar Admin
Javascript code in custom link
Hi, I am using Javascript code in Custom link to open a link or display Error message based on the condition .
Behavior= Execute Javascript
Content Source= Onclik javascript
But, It is not working. Can anyone give suggestion
Behavior= Execute Javascript
Content Source= Onclik javascript
if('{object__c.field1__c}' <> 'Z0' || '{object__c.field1__c}' <> 'Z4') { window.alert("Error Message"); } else { window.open("https://xxxx.net/parmeter1={!object__c.field2}¶meter2={!object__c.field3}"); }
But, It is not working. Can anyone give suggestion
Raj Vakati
Use this code