How to pass data from variable to custom component iframe code

Hey all, is there a way to pass value from variable to customcomponent iframe value?

Example in customComponent Iframe field i reference my variable like {{var1.value}} but what i see is

how do i solve this issue.

Hi @WolfSheep

The Retool custom component implementation is not declarative as you are suggesting with your attempt, but it's much more imperative.

Variables are passed through the model and in the iframe you need to set a subcribe function to receive updates from Retool.

More info in the documentation here: Develop custom components | Retool Docs

Hope this help.

1 Like