+ Start a Discussion
Shweta SoparkarShweta Soparkar 

Selecting radio buttons for the Id in the URL

I have a URL like this:


Now this URL has the quote ID. I now want to select the radio button for this Quote ID which is displayed through my custom visualforce page.

User-added image

Any help is appreciated!!
Chris  ByromChris Byrom
I am assuming you are using a wrapper class for these quotes for the select option in the table. If so, you just need to get the parameter in your controller and when you are creating your wrappers set the selected to true for the record with the matching Id. If it is a field on the Quote object, you can set it to true using the same logic.

Getting URL Parameteres - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_System_PageReference_getParameters.htm