+ Start a Discussion
mac adminmac admin 

How to rest the input fields when picklist value changes

HI all,

I have created four custom vfpages for Force.com Sites. I'm redirecting the pages with methods in custom controllers. I was displaying the fields based on picklist value.  When I'm redirecting to previous page,  after clicking previous button If I change the picklist value then firstly given values are not changing to null.

Can any one help me over here.

Thanks in advance.

Regards,
mac.
Amit Singh 1Amit Singh 1
Hello Mac,

Use on change event on that picklist field in VF page and call a method of controller class which will be responsible for resetting the values to null and then rerender that particular part(The part which you want to refresh).

Let me know if this helps :)

Thanks! 
mac adminmac admin
Hi Amit Singh,
 Can you please give some sample example. It will help me how ot reset the input fields in the page block section.

Thanks in advance.
Regards,
mac.