I am adding custom field on Magento 2 checkout shipping address. It's a hidden input. The value should be automatically updated based on another custom field which is a select (populated from ajax response data), using its option text/label. How can I "link" between input value and selected option text?
In my current custom component for the select, it already export the value to input
exports: {
value: '${ $.provider }:shippingAddress.custom_attributes.subdstrict:value'
}
But it sends the selected value instead of the text. how to send the selected option text instead?