You need to sign in to do that
Don't have an account?

Required fields on a child object
I have a VF page which has a section with fields from a child object - these fields are required but I can still save the page if these fields are not completed. How do I force users to fill the fields on a child object.
Are you using inputField tag ?
If so please set required attribute to true.
If you are using something else ,Please paste your code here.
<apex:inputCheckbox label="CA" value="{!BusUnits['CA']}" required='true'>
use required = true
<apex:inputCheckbox label="CA" value="{!BusUnits['CA']}" required = true>
Thanks
then you can use selected = true to make it check and uncheck
What exactly you need ? Can you elaborate more ?
You can bind onclick event on the submit button..onclick of that button you can call javascript function and check if all any checkbox is checked then user can continue , if nothing is selected then show alert ...