Javascript-Value from post message block is not returning value

Hi Thunkable Users, I have implemented javascript web bridge in my application and data processing HTML is locally uploaded in thunkable. It is working fine with the post message and when message receives block. But I am not getting a return message with Javascript Value from post message block.

Please see the images


Getting output for when javascript receives message logic

But not getting return value for the below logic

Hi @senthilkumaranms724i
Could you please try to set “10” as a text?


Please see the images showing the result of the string input—it isn’t returning any value. In fact, I only tried using a numerical input because the string input didn’t work.

Hi @senthilkumaranms724i
The issue seems to be on the HTML code in the javascript web bridge

No it is not html code issue. it is working fine with “when receives message” block. I shared the output of those images as well in the first message. the html code is tested in general purpose tool as well and it is producing response. so it is not html code issue.

Do you have any examples using this “value from post message” block? So that we can figure out what’s going wrong.

Hi @senthilkumaranms724i
You can find an example here: https://community.thunkable.com/t/simple-javascript-web-bridge-example/3438881

1 Like

Thanks for sharing the link. I tested the HTML code used in the discussion and it worked fine both in JavaScript bridge " When receives message" and “Value from post message” block.

So it confirms that something in my code is incompatible with “Value from post message” block. but what strange here is, the same code is working well with " When receives message" block.

I will investigate my code and share the update.