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
20
Views
6
Comments
edited Jul 9, 2018 5:37PM in Customer Portal 6 comments

Content

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.

Version

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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