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
Shabs786521Shabs786521 

Adding fields and Values in picklist through setup for a VisualForce Page - URGENT HELP

Hi,

I have been trying to add fields and values to a picklist on a visualforce page through setup. I have realised that i was not able to add any fields or values to picklists on the visualforce page.

 

Is there a way i could enable this.

 

I have developed the visualforce page for my client and now i want my client to add or remove fields through setup or atleast add or remove values to the picklist through the setup. Currently i am able to do this ONLY through Coding.

 

Can anyone help me in this regard.

 

Thanks

 

Shabs Moiyed

Anand@SAASAnand@SAAS

Depends on how you are using this in visual force. Are you using <selectOption> or <outputField>. If you are using select option the only way is to modify your visual force page. 

 

I would define a custom object that has a picklist type and use <apex:outputField>. This will render as a regular picklist and you can change the values from Setup > Create > Objects...the standard way.