I have multiple sections on page. I am rendering these sections using a list. I want fields in first section to be required only. so I have used an apex:variable which I am incrementing within apex:repeat. I have used condition with apex:inpufield required attribute.
<apex:inputfield value="{!obj[myInfo.fieldPath]}" required="{!IF(srNo==1 ,true,false)}"/>
with this condition I am getting red bar in front of the field but on submitting the page, it is not validating that field. why this is happening?
srNo
?immediate="true"
on your submit button?