You need to sign in to do that
Don't have an account?
T-007
Amazing checkbox issue
When I click 'save' button without check the checkbox(terms and conditions) i.e.., not selected, then error message(not pop-up/dialog window) ApexPages.addMessage(new Appositeness's(ApexPages.Severity.ERROR, 'Please check the Terms and Conditions')); must come.
Note: there is no filed in the object for this. I created in Visual Force page, (value="{!termsCheckBox}" ) action={!save}
I want to know how to write in apex class the functionality in the save button
You have to incorporate <apex:pageMessage/> and then You have to use adderror conditionally based on your checkbox vaues in the save method of yours and return null
--yvk
I did exactly like that, but still not working. Can be more specific about check box name and value={! }
You can do something like this:
supposed you have this VF page:
then the corresponding controller would be like this:
Thanks tukmol
I solved the issue in another way.. with less number of lines. Anyway thank you for being so kind and helpful
Thanks Tukmol... your post really useful..