How to update text when making selections on a combo box

Hey guys, long time dweller first time posting.
I’m kinda fiddling around with a tycoon game currently but struggling to get text to update when selecting a new option in the combo box. So I’ve got the text binding working and it sets it to the default option which is $10 and “1” in the combo box, when i select 2 it should update it to $20 but doesn’t but when i exit that menu and come back to it it will be at $20.
I apologise if my question isn’t straight forward but Tl;DR I need to update a text box when i make a change in a combo box.
Image is of the binding for the text box.

Sorry if this has been asked, i tried google and etc but couldn’t find anything.

It’s a bit weird your set ‘cpu price design’ exec pin isn’t connected to your return node. You should fix that. I think the return won’t be able to grab from the set unless it’s in line with the exec chain.

that was connected i just didn’t notice that when i took the screen shot, I’ve been trying to work it out myself which led to it being unconnected in the screen shot.

aah, gotchya. Anyhoo, are you manually setting text anywhere outside your binding? like on menu spawn? That would cause it. If you are and you need your binding to update, just update the variable that gets converted to text and the binding will handle itself.

Don’t believe it’s being manually set anywhere else, sorry still a bit of a rookie here haha. It happily updates when i selected “2” from the combo box and click create and reopen the menu it’ll have changed to “$20” BUT it won’t update without opening and closing that menu which has got me stumped.

That’s what makes me think it’s being set manually. Bindings are weird with how easy it is to accidentally override them. One “set text” node and your binding is dead lol. But seriously, if you’re not breaking your binding with a set text then you should print string when you set your ‘cpu cores design’ int so you know when it’s being updated. That’s all I can really speculate without seeing more. :slight_smile:

Nevermind, i just figured it out :smiley: Thank you for the help tho!