+ Start a Discussion
sales1.392024992631559E12sales1.392024992631559E12 

How to repeat certains fields in a row when we click a button

Hi,

Could you please help me to create a  VF page.
I am looking for a help in repeating certains fields under an object by clicking an button (+ or Add). For ex: we have 3 fields:

1) Quantity - Number field
2) Product - Pick List field
3) Version - Number field

We would like these three fields to repeat upon a click of button like + or Add, so that we can enter as many data according to our requirement.

Any help will be highly appreciated.

Thank You,
Mithun
Best Answer chosen by sales1.392024992631559E12
asish1989asish1989
Hi 

This is a link which will help for your requirement .
http://salesforceworld4u.blogspot.in/2014/01/addremove-functionality-in-vf-page-for.html
If you dont want in a pageblock table then use apex:repeat instad of pageblock table

All Answers

asish1989asish1989
Hi 

This is a link which will help for your requirement .
http://salesforceworld4u.blogspot.in/2014/01/addremove-functionality-in-vf-page-for.html
If you dont want in a pageblock table then use apex:repeat instad of pageblock table
This was selected as the best answer
sales1.392024992631559E12sales1.392024992631559E12
Thank you Asish. Let me got through the link now.
sales1.392024992631559E12sales1.392024992631559E12
Thank you for your help, Asish. This is exactly what I was looking for.