CAKE20

AI Web PaaS

Inquiry form

Receive repeated inquiry/application forms safely into the Runtime archive.

Save inquiry

  • The form name must contain up to 40 lowercase English letters, numbers, and hyphens.
  • One submission can be up to 32KB and the same visitor can send up to 5 times per minute.
  • If there is a value in the _website hidden input, it will be considered spam and will not be saved.
  • The most recent 1,000 items are kept for up to 90 days and can be checked in the editor's inquiry archive.
  • The form that receives personal information specifies the consent value and displays the consent text on the screen.
export default defineApi(async (input, { request }) => {
  return form.submit(request, {
    name: "contact",
    consent: input.consent === true,
    data: {
      name: input.name,
      email: input.email,
      message: input.message,
      _website: input.website
    }
  });
});