Pass a javascript value as input to server action

I am reading an domain from an email field using document.getElementById("Input_Email").value.split("@")[1] . I need this value to be passed as input to my server action. Assign to variable also does not supported in assign widget.

How acn i achieve this? below is my flow of action.




Satish Kumar wrote:

I am reading an domain from an email field using document.getElementById("Input_Email").value.split("@")[1] . I need this value to be passed as input to my server action. Assign to variable also does not supported in assign widget.

How acn i achieve this? below is my flow of action.





Hi,


Please refer below post,


https://www.outsystems.com/forums/discussion/28846/how-to-pass-input-parameter-of-client-action-in-javascript/

https://www.outsystems.com/forums/discussion/7626/how-do-you-pass-a-javascript-variable-value-into-application-variable/

https://www.outsystems.com/forums/discussion/40098/how-to-assign-javascript-value-to-out-system-local-variable/


I hope that will help you!

Solution

Hello Satish,

You can add an output parameter to your JavaScript widget.


After that, you can use this output parameter to be passed as an input parameter to your server action.


Kind regards,

Rui Barradas

Solution