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
Dan231Dan231 

line breaks not allowed in string

Hi , Can any on the below issue ? I am getting "line breaks not allowed in string" for this line
 if(gicobj.Owner != null && csaobj.eo3__Project_Type__c == 'Dem' && csaobj.Program_Manager__c == null &&  (csaobj.Market_Channel__c == 'Gov't Sector' || csaobj.Market_Channel__c=='P&G Gamble'))
SfdcHawkeyeSfdcHawkeye
Hi daraaa.  The problem is you have an extra ' in your code.  You need to escape the ' in 'Gov't Sector'.  Try replacing 'Gov't Sector' with 'Gov\'t Sector'.
Dan231Dan231
Thank you so much @Al Hotchkiss 43.. Its working
SfdcHawkeyeSfdcHawkeye
Great!  Can you please mark my answer as the solution or Best Answer?