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
mahish mahimahish mahi 

visualforce image display

hi
I want to dispaly images in visualforce page with button click which i uploaded in salesforce document. I have created two buttons PREVIOUS and NEXT.
My requirement is when i click the NEXT button next image should be display on page and the button should be go blur/disabled if there is no next image in the document.Aswell as for PREVIOUS button..... hope you understood my prob

please show me the code

thank you
sandeep@Salesforcesandeep@Salesforce
Hi Mahish, 

Here I can provide some hints due to shortage of time 
1. You can query on document to get required image on next or previous button.
2. You can use disabled attribute on command button and change its value inside of the controller logic on clicking it and reRender the button.

Thanks
Sandeep Singhal