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

how to create the custom button for copying the field again when user clicks the button?



Now I am creating the form for the applicants who want to enter their qualification ,


If they want to enter the additional Degree like Post Graduation , How can I create the button which add the another row which shows the same fields


For an example,,


Qualification:[   ]               Subject:[   ]              Grade:[   ]                Institution:[    ]         (Reomve)


Qualification:[   ]               Subject:[   ]              Grade:[   ]                Institution:[    ]         (Remove)


Qualification:[   ]               Subject:[   ]              Grade:[   ]                Institution:[    ]          (Add)



Note: By clicking "Remove" button ,the row should be removed & similarly by clicking the "Add" button, the new row should be added with same fields.


Can anybody help for this?


Thanks & Regards.,


The add button/link will call a function in the controller. This function will instantiate a new object and refresh the section. A new object with now values will display as a new row in the section. HTH

 Thank you VBS


I'll try this . 


But I want to create that button using VF page. Can you help me how to add the row with the help of that custom button