Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
The application has focus to build a form for you based the JSON on file formSchema.ts
export const formSchema = {
title: "Form title when share the link of form",
buttonText: "Text of button responsible to process submit the form",
urlToSendFormData:
"URL will receive the form's data. PS: the URL need to support POST method",
inputs: [
{
label: "Name of input on form",
name: "Name used to send the data to url",
type:
"type of input. PS: supported the types are email, password, select, number, date, time, file(convert to base64 URL)",
required:
"Set if the input is required or not. Ps: use the value true or false",
},
{
label: "Resume",
name: "cv",
type: "file",
required: true,
},
{ label: "Nome", name: "name", type: "text" },
{
label: "Birth date",
name: "birth_date",
type: "date",
},
{
label: "Password",
name: "password",
type: "password",
},
{
label: "Number input",
name: "number_typed",
type: "number",
},
{
label: "Select example",
name: "website",
type: "select",
options: [
{
label: "Linkedin",
value: "Linkedin",
},
{
label: "Github",
value: "Github",
},
{
label: "Google email",
value: "gmail",
},
],
},
],
};