+ Start a Discussion
RIyas BasheerRIyas Basheer 

Visual force Page Error: Syntax error. Missing ')'

Hi,

I am getting an error  Error: Syntax error. Missing ')'  while saving a visualforce page on below line: 
<apex:inputCheckbox id="theScheduleCheckbox" styleClass="scheduleCheckbox" selected="{!IF(FbPost.scheduledHour = '', true, false)}"  onchange="showCalendar(this, 0);" />

As on inspection the if statement  "{!IF(FbPost.scheduledHour = '', true, false)}" causes the error.

Can anyone help me to find the solution?


Vinit_KumarVinit_Kumar
Try below code in your if condition :-

"{!IF(FbPost.scheduledHour == null, true, false)}"


Vitap RamdevputraVitap Ramdevputra
Hello,

Have you tried "==" ?
If not; please check it out. "{!IF(FbPost.scheduledHour == '', true, false)}"