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
sparc1.3696571782628958E12sparc1.3696571782628958E12 

Add text field dynamically on click of cutomlink again and again

Hi All

 

I have an object named "Business_Unit__c" in which I am having the Standard Name field that equals to the name of my "Business Unit" (hereafter mentioned as BU) and initially I have 1 Text Field that would contain the name of my "Sub-Business Unit" (hereafter mentioned as SBU).

 

Functionally a BU can contain more than one SBU.

 

So what I require is that there should be a CustomLink that should say "Add another SBU"  (Just like you say add another Attachment in gmail). 

 

On click of this Link, dynamically another text field should appear along with a label that says "SBU#2" and this should occur again and again likewise for dynamically adding "SBU#3", "SBU#4", ....... and so on.

 

At the end of my Page I want a "SAVE" button that should create as many text fields as are there, and save the record in my Custom Object "Business_Unit__c".

 

PLEASE HELP... ITS URGENT...

 

Thanks in Advance

Shiv

sparc1.3696571782628958E12sparc1.3696571782628958E12

Hi is there no one who can help me on this please???

 

Thanks

Shiv