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

Create/Update a new section in Visualforce page based on input provided in a custom field

I have a custom object, say VF_Page_Update__c which has say, a picklist field called VF_Page_Name. This field will contain the names of some VF Pages say A,B,C,D. I also have another text field in this object called Update__c.
What I require is, say I write 'Test' in the Update__c field and choose A as the VF page Name. Then a new field will be created in the A Visualforce Page with 'Test' as the data.
Is this possible? Do I require the use of any API? If anyone is able to do this, can you please share the code for this?
ihssan tazinyihssan taziny

To create a field you need the Metadata API:

got to : Setup -> Develop -> API -> Metadata WSDL. and then click Generate Metadata WSDL, and save the xml file. 
After that, go to Apex Classes and click the button "Generate from WSDL" and flollow the steps.

here's a link to the oficial doc of Metadata API:

Hope this help!