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
kaulsaksoftkaulsaksoft 

Dynamic field creation

I need to create  a field based on a picklist value.

For e.g   i have  a picklist saying how many children you have<1,2,3>

If a say two

 

I then dynamically create 2 rows for entering details of the 2 children

Name age education for first child another row with the same fields

Name age education for second child

 

 Please help me ...

atomaratomar

Ofocurse you can - Please take a look at 

 

http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=4302

 

You have to use apex trigger. 

 

 

infoweldernickinfoweldernick
Something to keep in mind - typically with one to many relationships, you'll want to create child object to track the multiple entries instead of creating more custom fields.  What happens if they have octuplets???:smileywink:
kaulsaksoftkaulsaksoft

Sorry folks actually my question was creating a dynamic textboxes on a visual force page which would appear on the basis of the a picklist value.

 

This I did by the DynamicEdit page of Visual Force.

 

http://wiki.developerforce.com/index.php/Visualforce_DynamicEditPage