I’m trying to create a page with three buttons, each of which downloads our software for a supported platform: Windows, MacOS, or Linux. Making the buttons work unconditionally is straightforward.
However, these buttons should only perform the download if the user has accepted the clickwrap license agreement. I’ve created a form with a single checkbox for this purpose. I’ve hidden the form submit button (i.e. covered it with a box) because I need three buttons, not one.
I’d like to have my three buttons inspect the state of the license agreement acceptance checkbox. If it’s checked, proceed with the download. If not, display some text in the page saying you have to accept the license agreement.
Can anyone point me to an example with similar logic, or explain how I could accomplish this?