+ Start a Discussion
Nidhi MalhotraNidhi Malhotra 

Visualforce page help

Hi All,

I am very new to salesforce development. Please help me with this issue. I need a visual force page with the following:
  • Visualforce page displaying all the Members of a specified group.
  • A remove button next to the each member
  • Once we click on the Remove button, the controller function has to be called.
I have done all the above, but when I click the Remoe button I am calling a Javascript function. That JS function calls the ActionFunction. But the Action function is not getting executed. How do we pass the paramete inside action function?

Please help me here.

Thanks,
Nidhi Malhotra
Best Answer chosen by Nidhi Malhotra
Sonam_SFDCSonam_SFDC
If I understand this correctly - you will have to use the apex:param to pass the value of the parameter you are trying to pass in the action function as this function cannot take parameters directly :

Read through the sample code on the dec below:
https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_param.htm

All Answers

Sonam_SFDCSonam_SFDC
If I understand this correctly - you will have to use the apex:param to pass the value of the parameter you are trying to pass in the action function as this function cannot take parameters directly :

Read through the sample code on the dec below:
https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_param.htm
This was selected as the best answer
Nidhi MalhotraNidhi Malhotra
Thanks a lot, Sonam. It helped me a lot. Thank you once again.