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
abhi_developerabhi_developer 

how to execute javscript from custom buttons

I have written a javascript which verifies the email id format, i want to add a custom button which on click takes the id entered in the custom Email field of my custom obejct and verifies it and give the result.
 
 
While doing these though i have created a custom button which on click executes the javascript and have pasted the javascript there.
 
But when i click on the button it gives error "an error with the On Click Javascript for this link or button was encountered: Conditional Compilation is turned off".
 
 
Can any one help me with this.
 
 
Thanks in anticipation.
 
-Abhishek Singh
 
BGrimesBGrimes
It has to do with the @ char in the email addressed triggering this IE Jscript error.  I'd Google that for more detail since that's about all I know at the moment.  You could URLEncode the email addresses to see if hiding the decoding the email addresses helps get around this error.

Bryan