function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AVINASH UPADHYAAVINASH UPADHYA 

Upload Image and Check Box Query!

Hi Friends,
I have stuck with two small requirements, please help me to find the solution to this.

I have a VF page, and am using a standard controller. This VF has only save option. Now i want to save only if a check box in the page is checked, this check box is kind of I AGREE statment.

Another requirement is that in the same page i need to provide a option to upload the image and when user save it image also should be saved.

Thank you.
Avinash
sandeep sankhlasandeep sankhla
Hi Avinash,

you can do thi by javascript..onclick of save button you can check the checkbox value..if that is not checked then show alert else you cal call contrller method to conitue proceed...

thanks
sandeep