43
Views
6
Comments
I want to pass values from a checkbox to an upload popup

I want to pass values from a checkbox to an  popup which is used in a different block. Can you suggest the best practice to achieve it.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hello @Tushar Verma 

You mean, you want to pass Boolean values form one block to another. Am I right? If not, can you please elaborate the question bit wisely?

As of now, based on my understanding for your expectation,

If the "Popup block" is within that "Checkbox block", in that case you can very well pass the values via Input parameter.

Hope it helps.


Regards,

Nandhakumar S.


2024-09-12 02-43-38
Deepsagar Dubey

Hi @Tushar Verma 

If your checkbox is in screen which is using web block, then in bind onChange event handler with your checkbox, and assign the selected value('s) to a local variable.

Then create an input parameter in your block and pass your local variable value there, Inside block there is an event OnParameterChanged so if your checkbox value changed then you can handle these event in  OnParameterChanged handler action

I hope it'll help you.

Thanks
Deep

2023-04-16 15-25-31
Krishnanand Pathak

Hi @Tushar Verma ,

As I understand,

There is a screen which contains two blocks(Block A which contains checkbox & Block B which contains popup). And you want to pass the checkbox value from Block A to Block B.

If yes then perform the below steps:

>Create a local variable on the screen for holding the checkbox value.
>Create a event with input parameter and call the event at checkboxOnChange which will pass the checkbox value to the event. Inside Block A.
>Create a event handler on screen for the event of Block A, that will assign the value return by event to the local variable of the screen.
>Create a input parameter inside Block B.
>Pass the screen local variable to Block B as parameter.
>Then you can use input parameter of Block B inside popup or anywhere inside Block B.




Regards
Krishnanand Pathak


UserImage.jpg
Tushar Verma

Hi @Krishnanand Pathak ,

Let's say that block B (which has the checkbox selected value)  is inside block A as a popup. Then in that Scenario what should be done.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Tushar Verma 

As I've already said, you can pass the values via input parameter. If the Block B is nested within Block A.

Hope it helps.


Regards,

Nandhakumar S.

2023-04-16 15-25-31
Krishnanand Pathak

Hi @Tushar Verma,
 
If the Block B (Which has checkbox inside the popup) is inside the Block A.
And you want the checkbox value from Block B to Block A.
Then you can use the event for getting checkbox value from Block B to Block A.

For more details about Blocks and Events check the below link
https://www.outsystems.com/training/courses/121/blocks-and-events/


Regards
Krishnanand Pathak

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