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
Raviteja KothaRaviteja Kotha 

user when clicks a launch button in opportunity page it should navigate to vf page with picklist as a inputfield

User when clicks "Survey" button in opportunity page, VF page should be displayed with questions(consider a picklist field) from a custom object and when user answers the question(the answer field is an input field) and clicks submit button the answers and the opportunity name should be stored in the same  custom object.
 
kalpeshs91kalpeshs91
I belive, User will click on Button from Opportunity detail page and VF page will open with a question. Once user answer(select value) and click on submit, record should create in custom object with Answer and Opportunity name. Is it?
Raviteja KothaRaviteja Kotha
yes
 
kalpeshs91kalpeshs91
Then it is very strightforward, 

You need to carry OpportunityName (consider 'OppName' is parameter name) in VF page as parameter and once user click on Submit button,
can get value of picklist field from vf
and action of Submit can fetch a OpportunityName using apexpages.currentpage().getparameters().get('OppName') and create a record.