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
fabrizio bianchi 13fabrizio bianchi 13 

rank picklist values

Hi guys,

Would it  be possible to allow users ranking the picklist values (car models in this case) of a lead/opportunity ?

edit picklist values order

Is it
Best Answer chosen by fabrizio bianchi 13
Suraj Tripathi 47Suraj Tripathi 47
Hi fabrizio,
Yes, you can do this by creating a visualforce component setting the component on the VF page.
Here is the link for your reference:-
https://developer.salesforce.com/blogs/developer-relations/2012/06/a-multiselect-picklist-visualforce-component.html
The link above has the same example as you are trying to achieve.
and here is another link for the code for above example:-
https://github.com/metadaddy/Visualforce-Multiselect-Picklist
Hope it will help you.

Please mark it as the best answer if this helped you.
Thank you

Regards 
Suraj Tripathi

All Answers

Suraj Tripathi 47Suraj Tripathi 47
Hi fabrizio,
It is only possible when the user edits the object from the setup i.e updating the position of the values in the picklist from the fields in the object manager. 
If you want to specifically assign a rank to the value you can make a separate picklist for rank 1 and rank 2 and so on. 
and the user can select the value from the picklist.

Please mark it as the best answer if this helped you.
Thank you

Regards 
Suraj Tripathi
fabrizio bianchi 13fabrizio bianchi 13
Hi Suraj,

Another picklist won't work, I am talking about a visualforce/Apex logic that has to be reflected in Reports following the same prioritization of  car models.
.
Suraj Tripathi 47Suraj Tripathi 47
Hi fabrizio,
Yes, you can do this by creating a visualforce component setting the component on the VF page.
Here is the link for your reference:-
https://developer.salesforce.com/blogs/developer-relations/2012/06/a-multiselect-picklist-visualforce-component.html
The link above has the same example as you are trying to achieve.
and here is another link for the code for above example:-
https://github.com/metadaddy/Visualforce-Multiselect-Picklist
Hope it will help you.

Please mark it as the best answer if this helped you.
Thank you

Regards 
Suraj Tripathi
This was selected as the best answer
fabrizio bianchi 13fabrizio bianchi 13
Yes, that is exactly what I am looking for. Thank you Suraj.
hd ss 6hd ss 6
You simply want to discern out the way to constitute it in both HTML and/or Javascript.  Some mind are that you can use an photo map or a table of photos and checkboxes to render the car and take a look at rentluxurycars (https://www.rentluxurycars.ae/).
Karim LaphroaigKarim Laphroaig
Hello to all car enthusiasts who have a problem with the choice of used cars, I am sure that I will be able to help you with this issue. I want to advise you of this site https://vehileaks.com/indiana . It will allow you to choose from many excellent options