How to use a local variable with Javascript?

Hi. I'm using the Javascript API feedback method, as explained in documentation:

$public.FeedbackMessage.showFeedbackMessage("Your data has been submitted.", 1, true""false); 

Instead of the message, I can show an input parameter, this way:

$public.FeedbackMessage.showFeedbackMessage($parameters.MyParam, 1, true""false);

I'd like to know how can I show a local variable which is declared in the module. I've tried somthing like this:

$public.FeedbackMessage.showFeedbackMessage($variables.MyVar, 1, true""false);

Well, you guess, it didn't work. Is it able to reach a local variable form javascript to be displayed in such a message?

Thanks.

Hello,

Try to check this documentation (https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_and_Reactive_Apps_Using_JavaScript#Use_input_and_output_parameters). It shows how to add input (and output) parameters to your javascript.

Best regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.