This is a snippet from the my own library that i maintain for my webflow projects. A brief guide is found below;
Simply copy and paste the custom code found on the body of this page into your project.
Following that you need to assign 2 data attributes to each button sending data and a matching ID to the element receiving the data.
The value should match the element IDÂ on the receiver element. For example 'input-one'
The value should be the data you want to send, for example 'hello world'
The unique ID for the receiving element, this is usually an input field.