Walter Lee Davis
On Jun 9, 2020, at 11:37 AM, firstname.lastname@example.org wrote:It's not so much not-to-be, but more like not-yet.
So to make this work, you would create a form with one text field and a submit button labeled "Check Code" or something like that. Make sure the form has an Action set to '#', and a Method of GET. Xway doesn't support creating forms yet, so this is either theoretical, or something for you to implement in a Markup Item, depending on your level of devotion to the craft.
On the button, you would add an onclick attribute, which will "hijack" that button click and cause the form to redirect. This technique is similar to the ancient "Password Protected Page" Action of Freeway of Yore.
<form action="#" method="get">
<label for="code">Coupon Code</label>
<input type="submit" value="Check Code" onclick="return check_code(this)">
var code = button.form.getElementById('code').value;
button.form.action = code + '.html';
alert('Please enter a coupon code');
Untested, but should probably work.
Please let me know if this makes any sense at all.