Binding a value in a component

Ive tried to use a variable within a component. When trying to bind to an API (on a submit button workflow) i get undefined values. When i try to workflow the component variable to update a data parameter, i also get blank values.

Is there a way around this to be able to use the values in the API - within components…

Thanks

Can you post a few screenshots for more context?

This is the input field within the component

Ive tried using variables within component too (set to share outside)

values blank in binding to API

Are you updating the variable on change?

Hi Luka
I did try this by updating an external variable first, but this didnt work. Rethinking this after your question, i now have it working by the change updating the internal component variable instead which is externally visible. In short, the gap was i assumed the variable like an input was auto updating.

Thanks for your help