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
Karthikeyan KannanKarthikeyan Kannan 

Add Row functionality in VisualForce

Hi,

I want to add  Row's with Dates and with  Date Picker.
I have a VF page where in I am using  standard controller.
The first time when the page is displayed 2 input fields are there i.e. StartDate and EndDate.

Now, I want to implement the functionality wherein if a user clicks on Add Row button,  1more row will appear to enter a value in both  the fields(StartDate and EndDate.). So, if he clicks the button 5 times, 5 rows shud appear with thses two columns.
After providing the inputs, he will click on "Save " button, and the record should be saved wherein the inputs provided in multiple rows should be saved into the related list of the  detail Section (The Section will contain the information like StartDate and EndDate).
Request you to please forward me the code for the above mentioned functionality. Since its an urgent requirement. An early reply will be highly appreciated.

Thanks.
bob_buzzardbob_buzzard
I've written a blog post that's pretty close to this at:

http://bobbuzzard.blogspot.co.uk/2011/07/managing-list-of-new-records-in.html
Karthikeyan KannanKarthikeyan Kannan
Hi bob,
 That was helpful and thanks for your reply.