I have an with required="TRUE". For some reason it isn't getting throwing error even if I save it without checking the box.
Here's the VF Code.
<apex:outputPanel styleClass="margin-t3" layout="block" >
<div class="row">
<div class="form-group no-margin">
<apex:inputCheckbox required="TRUE" value="{!app.Reviewed__c}" id="Reviewed"/>
<label> I verify that I have reviewed this. </label>
</div>
</div><!-- end row -->
</apex:outputPanel>
<apex:commandlink styleClass="btn btn-primary btn-lg" action="{!navigator}" id="nextlink" onComplete="rerunjs();" reRender="webform" status="onsubmit">
<apex:commandButton value="Save & Continue" id="continuebutton" />
</apex:commandlink>
In the class though, I just update app. No errors and the page redirects to the next page.
I want to make the checkbox mandatory in the VF page itself. I don't want to touch apex for this. Please let me know what is wrong here.
immediate="true"
somewhere on the command button for example?