+ Start a Discussion
srutmsrutm 

apex controller

I have a button in my visual force page called "add",every time i click on the button in my vfpage a field from my custom object should be visible..

suppose if i click on "add" first time "approver2" field should be available and again if i click on "add" second time "approver3" field of my custom object should be available n again click "add", "approver4" field of my custom obj should be visible

SammyComesHereSammyComesHere

You can either use javascript to fulfill your requirement.

 

If these are individual Operations and may or may not happen at the same time, I suggest Use a counter at Custom Object level which would store the no of times it has been clicked and then using the rendered attribute of input , you can display that specific component on tyhe screen.