How do you get a value in an embedded stateless form out to use somewhere else on an html page?

How do you get a value in an embedded stateless form out to use somewhere else on an html page?

I have an html page with two items:

1. Stateless form without any buttons.
2. An HTML button that triggers a function.



I need a way to get the value in the stateless form into my html button that runs a function.

How do you get a value in an embedded stateless form out to use somewhere else on an html page?


I have no form buttons, they don't work for reasons zoho has not figured out for 10+ years (validation with a submit and cancel button. Cant cancel with validation). Solutions using openURL and all that don't work.