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
Nidhi Sharma 17Nidhi Sharma 17 

Integrating dynamic picklist to existing custom object

Hi,

I have a custom picklist created using visualforce page and apex. And its working very well in the visualforce page created. Now i wish to integrate it with my project in one of the custom object (Applications). This picklist will serve as a normal picklist there along with other fields already present there to take the input and save the record.

Please help.


Regards,

Nidhi

Gaurav KheterpalGaurav Kheterpal
You can do achieve this by writing a validation rule that verifies that a picklist value is selected on insert and update. This should ensure that a value is always associated to that field.

Something like
 
ISPICKVAL(My_Value__c,'')
where My_Value__c is the API name of your picklist field. I hope this helps.

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker



 
Nidhi Sharma 17Nidhi Sharma 17

Hi Gaurav,

Can you please elaborate it further. I am still not able to achieve it.

 

Basically, I have a dynamic picklist fully working. But its on a visualforce page. I want it to be displayed on a custom object 'edit page'.

Same picklist, just on custom object edit page.