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
Avesh LakhaAvesh Lakha 

VF Document view based on user Input

I have one VF page which opens when someone clicks on View document. I want this document to be open based on the user selection. So if the user selects PDF and save the record and then click on the button then doc should be open in PDF and if user select word then doc should be opened in word. I have reviewed many articles but unable to get how to achieve this.
Can anyone please help me?