+ Start a Discussion

Displaying Q&A

My actual requirement was like
i have a custom object in that i have fields questions(data type text area),answers(answer also same ) an pick list having internal user,external user and All users. now my requirement is i want to display the pick list values in vf page and if the user selects internal option in picklist then page should display question and answer related to internal and if he selects ExternalUser it should display Questio and answer of  External user and if he selects all user it should display All the Q&A .So how could i achieve this.For that i wrote the above code .i am getting the pick list but not the Q&A related to that.Please help me on this.
Hi Veeru, 

Looks like community members have already given the right code in the links below, 



Let us know if that code does not meet your requirements.