export default async function() {
let name = await form.short("**Welcome!** First off, your name?", {banner: true});
await form.statement(`Nice to meet you, ${name} 👋`, {banner: true});
let { value: category } = await form.multi('What can I help with?', [
{label: "I want an invite to the beta", value: "beta"},
{label: "I have questions about the product", value: "questions"},
{label: "I need help with something", value: "help"},
]);
if (category !== 'beta') {
await form.long('Please type in your message below');
}
await form.short('Thanks! Finally, we need your email address', {
description: "This is just so we're able to contact you. No spam.",
email: true,
});
await form.statement("That's it! Hit _Submit_ below and you're good to go.", {
description: "You should hear back from us later today",
buttonText: "Submit",
});
}
You can also fetch remote data at runtime, accept payments, capture URL parameters, and a lot more.
This is a live form generated using the code on the left. Try it above, or create a copy that you can modify.
Join our mailing list to receive monthly updates about Formulate as we build towards a beta and onwards.
We'll also send you a special discount when we eventually introduce paid plans.