UI builder blocks

On page in UI builder i have 2 blocks. In logic of first block i have custom funcion in witch i created variable. How can i use that same variable in custom function of second block logic?

Hello @Nikola_Vojinovic

Set var from the first block to “Page data” context block
Get var from the “Page data” in the second block.
Use “Set property in” and “Get property” blocks from “Object” sections

Regards

But variable is created in javascript in custom function. I don’t know how to extract that var to use in codeless logic?

@Nikola_Vojinovic

I see.
The function must return your variable.