+ Start a Discussion
Developer99Developer99 

Radio button click new field id created

HI,

               i want to created the field based upon radio button click, when i click in radio button new field will be created and that value i want to store in object can any-one suggest me
Gupta.VishalGupta.Vishal
Hi Please Read this blog this might help .

http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/

Thanks ,
Ashish_SFDCAshish_SFDC
Hi , 


<apex:pageBlock id="tBlock"> 
   <apex:outputLabel value="Checkbox" for="theCheckbox" /> 
 
   <apex:inputCheckbox value="{!customObject.CheckBox__c}" id="theCheckbox"> 
      <apex:actionSupport event="onchange" rerender="tBlock"/> 
   </apex:inputCheckbox> 
 
   <apex:outputLabel value="Enter Data Here" /> 
   <apex:inputText value="{!customObject.TextField__c}" disabled="false" rendered="{!(customObject.CheckBox__c == true)}"/> 
   <apex:inputText value="{!customObject.TextField__c}" disabled="true" rendered="{!(customObject.CheckBox__c != true)}"/> 
 
   <!-- If you only want a field to show up when you check the box See below --> 
   <apex:inputText value="{!customObject.TextField__c}" rendered="{!(customObject.CheckBox__c == true)}"/> 
</apex:pageBlock>

https://communities.bmc.com/thread/66619

Also see some more samples below, 

https://developer.salesforce.com/forums?id=906F000000097FUIAY

http://salesforce.stackexchange.com/questions/7497/hide-and-show-pageblock-on-button-click

http://www.interactiveties.com/blog/2012/visualforce-dynamic-buttons.php#.UzLaYvmSwpE


Regards,
Ashish