You need to sign in to do that
Don't have an account?

How to render a field multiple times on Visualforce page?
Hi,
I ahve a requirement where I need to give the user an ability to enter a free text multiple times. FOr eg; I have a field named PIN. I will create a button named 'add additional PINs'. On click of the button the field should be rendered multiple times on the page. User will enter the value and the values entered in each field must be stored in a Long text area field seperated by commas.
Can I achieve this in VF page? Any suggestions on the code please!!
Thank you in advance for the help!!
I ahve a requirement where I need to give the user an ability to enter a free text multiple times. FOr eg; I have a field named PIN. I will create a button named 'add additional PINs'. On click of the button the field should be rendered multiple times on the page. User will enter the value and the values entered in each field must be stored in a Long text area field seperated by commas.
Can I achieve this in VF page? Any suggestions on the code please!!
Thank you in advance for the help!!
public class addpin
{
public string inputpin{get;set;}
}
whenever user clicks on add new pin button, create a dummy entry and reload the datatable or pageblocktable. while saving iterate through the wrapper class and (read) all the values from the wrapper class "inputpin" and finally save to the rich text field separated by comma.
Hope this helps :)
Thank you so much for the prompt response.
I am am a newbie to the programming world. I really tried hard to understand the wrapper class but I could not figure out the logic. I know it's more to ask, but Could you please help
me with the code for my requirement and I will be able to understand it better.
Thank you !!!
Wrapper class are nothing but a placeholder for records/data. where you can declare , store and use for later DML operations.
http://www.forcetree.com/2009/07/database-search-and-selection.html