# Javascript-Value from post message block is not returning value

**URL:** <https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685>\
**Category:** Questions about Thunkable X\
**Tags:** javascript\
**Created:** [June 15, 2025, 4:02am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685 "2025-06-15T04:02:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthilkumaranms](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@senthilkumaranms](https://community.thunkable.com/u/senthilkumaranms)\
**Post date:** [June 15, 2025, 4:02am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/1 "2025-06-15T04:02:22Z")

</div>

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

 ![When_Javascript_Receives_Message_Block_Works](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18a7f32b0d91847deae5567a1395815449c7d798.png)  
Getting output for when javascript receives message logic  
 ![Getting_Output_For_When_Javascript_receives_Message](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4d03b73922d68e563acb3e8022c666e98e4aa42c.png)

But not getting return value for the below logic

 ![Value_From_Post_Message_Not_Returning_Message](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/947747b34cf536eaaed05a6c8f2bf1fe1b4cee76.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [June 16, 2025, 6:27pm UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/2 "2025-06-16T18:27:58Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f09ef779a22d2dea83816084ccfe51b6d8cf76ab.png)

---

<div class="post-metadata">

**Author:** ![senthilkumaranms](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@senthilkumaranms](https://community.thunkable.com/u/senthilkumaranms)\
**Post date:** [June 17, 2025, 3:49am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/3 "2025-06-17T03:49:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/26064c03d49594eaafce0df1ea6151e9caf8acea.png)  
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.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/f/2f7bcd18ebe74576a2630c6a93e02c99fd247f92.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [June 17, 2025, 9:20am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/4 "2025-06-17T09:20:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![senthilkumaranms](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@senthilkumaranms](https://community.thunkable.com/u/senthilkumaranms)\
**Post date:** [June 17, 2025, 10:34am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/5 "2025-06-17T10:34:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [June 17, 2025, 11:23am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/6 "2025-06-17T11:23:46Z")

</div>

Hi @senthilkumaranms  
You can find an example here: [https://community.thunkable.com/t/simple-javascript-web-bridge-example/3438881](https://community.thunkable.com/t/simple-javascript-web-bridge-example/3438881)

---

<div class="post-metadata">

**Author:** ![senthilkumaranms](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@senthilkumaranms](https://community.thunkable.com/u/senthilkumaranms)\
**Post date:** [June 18, 2025, 3:55am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/7 "2025-06-18T03:55:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 16, 2025, 3:55am UTC](https://community.thunkable.com/t/javascript-value-from-post-message-block-is-not-returning-value/3923685/8 "2025-09-16T03:55:23Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
