You need to sign in to do that
Don't have an account?
![@login.ax974 @login.ax974](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Visualforce - same page reference and scrolls
Hi All,
Can someone please help me with some example - I need to implement typical Q&A - when user clicks on question(hyperlink) he is scrolled down to the answers section. From the answers section he clicks on Top (hyperlink next to that answer) and brought back to the question he clicked on.
In HTML we can do it using anchor tab but then the values for the names should be static. But here the questions and answers are taken from an sObject and it can have any number of values.
Really appreciate any help.
thanks.
You can use your Answers or Questions object IDs as unique reference.
You can also create a counter (integer) in your controller and use something like "Answer{!counter}" as ID.
Regards ;)