You need to sign in to do that
Don't have an account?
vijayakumar B
URL Comparision
hi friends,
this trigget is not working.
my aim is to print an error message if the selected url is shine.com
could you help me..?
trigger ppp on Job_Posting__c (before insert,before update) {
//Employment_Website__c web=new Employment_Website__c();
for (Job_Posting__c jobInLoop : Trigger.new) {
if(String.valueOf(jobInLoop.Employment_Website__c)=='http://Shine.com'){
jobInLoop.addError('WE cannot post your Job to shine.com');
}
}
//Web_Address__c Price_Per_Post__c
}
this trigget is not working.
my aim is to print an error message if the selected url is shine.com
could you help me..?
trigger ppp on Job_Posting__c (before insert,before update) {
//Employment_Website__c web=new Employment_Website__c();
for (Job_Posting__c jobInLoop : Trigger.new) {
if(String.valueOf(jobInLoop.Employment_Website__c)=='http://Shine.com'){
jobInLoop.addError('WE cannot post your Job to shine.com');
}
}
//Web_Address__c Price_Per_Post__c
}
you can convert the input string to all lower case and use contains function to check if the value has shine.com ...
Also,what is the Datattype of field Employment_Website__c