1. Create a script
Open JavaScript in your Slater account and choose New script. Describe what you want to the AI editor, or write it yourself.
Example
// Show a minimum-order note on the wholesale form
const form = document.querySelector('#order');
form?.addEventListener('submit', (e) => {
const kg = Number(form.querySelector('.kg').value);
if (kg < 5) { e.preventDefault(); showMinimum(); }
});2. Choose where it runs
Run a script on every page, or only on pages that match a path like /shop/*.
3. Staging, then production
- Save to staging and check it on your
webflow.iodomain. - When it works, publish to production. Slater keeps each version, so you can roll back.