Populate server action variable from javascript

In the project's JavaScript module, I have a function that returns a value.

I would like to create a server action to populate a variable that is inside the action to pass where you need it.


How to fill a value that is inside javascript for a variable that is inside the server action?

Hello Eduardo.

For the traditional web applications I believe this topic is a duplicate of this one here.

On the React Web Apps the behaviour is the same as on mobile, just put an output from the javascript widget and assign the value to it.

Hope it helps!