+ Start a Discussion

Visualforce - Error: Syntax error. Missing ')'


I am using a formula in rendered option of inputCheckbox. It is as below
<apex:inputCheckbox id="isDelete" value="{!ebrecs.deleteDelegate}" selected="false" rendered="{!IF(OR(ebrecs.EventBooking['Name']==null, ebrecs.EventBooking['Name'].contains('New-EB')),true,false)}">

I am getting Error: Syntax error. Missing ')'  
Could you please help to find correct syntax.

Best Regards,

Rahul Sangwan7341Rahul Sangwan7341
Try this out:

<apex:inputCheckbox id="isDelete" value="{!ebrecs.deleteDelegate}" selected="false" 
rendered="{!(IF(OR(ebrecs.EventBooking['Name']==null, (ebrecs.EventBooking['Name']).contains('New-EB')),true,false))}">
Hi Rahul,

Here is the simplified condition which you can use for rendered attribute -

<apex:inputCheckbox id="isDelete" value="{!ebrecs.deleteDelegate}" selected="false" rendered="{!ebrecs.EventBooking['Name']==null || ebrecs.EventBooking['Name'].contains('New-EB')}">

Vivek Patel.

Please like or mark this as best answer if this answers your question to help others find better answer and improve the quality of developer forum.