+ Start a Discussion
RahulBorgaonkar@BritsafeRahulBorgaonkar@Britsafe 

Visualforce - Error: Syntax error. Missing ')'

Hi,

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
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))}">
Vivek_PatelVivek_Patel
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')}">

Regards,
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.