$w.onReady(function () { // Disable the submit button initially $w("#submitButton").disable(); // Enable the submit button when an amount is entered $w("#amountInput").onInput(() => { if ($w("#amountInput").value && $w("#amountInput").value.trim() !== "") { $w("#submitButton").enable(); } else { $w("#submitButton").disable(); } }); // On submit, scroll to Section 1.2 $w("#submitButton").onClick(() => { // Let the form submit first setTimeout(() => { $w("#section1_2").scrollTo(); }, 500); // Adjust delay if needed }); });
top of page
bottom of page