We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to call a Server side function from a Javascript?

Accepted answer
edited Jul 9, 2018 5:37PM in Customer Portal 6 comments


We have a custom Widget placed on a HTML page which has a Save button. On click of Save, a server side function (that accepts some parameters) needs to be triggered to update the Contact record (corresponding to the Logged in Customer Portal user).
Currently the function is built as a Custom Controller code.

a. Is there a way to get the Logged in User's Email Id (or Login) in the Javascript code?
b. How can we call the Server side function though the Javascript that captures the "Save" action?

Request guidance on the implementation and related syntax.


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!