# Lock Value and slider style

**URL:** <https://community.elfsight.com/t/lock-value-and-slider-style/76174>\
**Category:** Customization\
**Tags:** calculator\
**Created:** [October 17, 2024, 11:52am UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174 "2024-10-17T11:52:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quay](https://avatars.discourse-cdn.com/v4/letter/q/439d5e/32.png) [@Quay](https://community.elfsight.com/u/Quay)\
**Post date:** [October 17, 2024, 11:52am UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/1 "2024-10-17T11:52:51Z")

</div>

- **Issue description:**  
Hello,  
Its possible to :

1. Change slider calculator style?  
From :  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/5/9/59e274fdbb85f7055bc15b7e5d5b6634d2339ccf.png)  
to :  

2. Get value from field and calculation in calculator, to add to post in WP(using custom code)?  
Get this value :

 ![Untitled2](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/c/3c1d1e81790274f5c04498b18c346e212c58efb4.jpeg)

to add in here using custom code :

 ![Untitled3](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/8/38e67a224baf82a9792c163db754409e487fc01f.jpeg)

- **Link to the page with the widget in question:**  
[ROI | QUAY ISLAND DEVELOPMENT](https://quayislanddevelopment.com/roi/)

Thank you.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 17, 2024, 12:45pm UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/3 "2024-10-17T12:45:04Z")

</div>

Hi there, @Quay 👋

I see that my colleague Dasha has just replied to you in a support ticket and shared the solutions. Feel free to test it out and let Dasha know if it worked 🙂

---

<div class="post-metadata">

**Author:** ![Quay](https://avatars.discourse-cdn.com/v4/letter/q/439d5e/32.png) [@Quay](https://community.elfsight.com/u/Quay)\
**Post date:** [October 17, 2024, 3:00pm UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/4 "2024-10-17T15:00:53Z")

</div>

Hi, @Max 👋

Yes, Dasha help me, and all code its worked. Thank you for the code 😊  
Only 1 problem not yet solved, its my second question in this post.

Thank you.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 17, 2024, 3:31pm UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/5 "2024-10-17T15:31:59Z")

</div>

Ah, sorry about missing that!

If I got you right, you are looking for a way to connect your widget with the cart on your website and dynamically pull values from the Results section there.

In this case, unfortunately, it’s impossible to implement this feature. We already have such a request on the Wishlist. Feel free to upvote this request - [Connect Calculator with Cart on my website](https://community.elfsight.com/t/connect-calculator-with-cart-on-my-website/60026).

However, if I misunderstood you, please provide more details on your use case 😉

---

<div class="post-metadata">

**Author:** ![Quay](https://avatars.discourse-cdn.com/v4/letter/q/439d5e/32.png) [@Quay](https://community.elfsight.com/u/Quay)\
**Post date:** [October 17, 2024, 5:07pm UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/6 "2024-10-17T17:07:14Z")

</div>

Hello @Max ,

Thanks for the reply, but the case not to connect my widget with the cart.

if you visit my site “link i insert in first post”, in that page have 2 section.  
First is roi calculator and the second is the detail.  
I need to sync/connect the second section with the value and result from first section(calc).  
So the value in second section will dynamic, every value change in calc, in section 2 same with calc.

first section :

 ![Untitled4](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/7/172e66a3f9afb90be080e96b1f52c1315b376ef6.jpeg)

i need occupation rate value, annual revenue and roi % value connected/sync with the second section

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/5/25659d588a7acef5cc4eb13321aa8a8755ff5105.jpeg)  
“under cons” value conected/sync to the calc value/result  
the value “under cons” i use custom code WP, i think to get the calc value using script “getelementbyid” but i dont know what id for the value in calc.

Thank you.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 17, 2024, 5:25pm UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/7 "2024-10-17T17:25:14Z")

</div>

Got it, thanks!

We’ll discuss it with the devs and let you know if it’s feasible 🙂

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 18, 2024, 7:42am UTC](https://community.elfsight.com/t/lock-value-and-slider-style/76174/8 "2024-10-18T07:42:11Z")

</div>

Hi @Quay 👋

I see that Dasha has already shared a solution from the devs. Please test it out and let Dasha know how it works 😉
