Version 0.0.1
L3 — Forms
◆ Luau Code
local formTitle = "Proving that you can use forms" local fields = { {label = "First Name", type = "text", id = "myText01", value = "Innes"}, {label = "Beef", type = "checkbox", color = "red"}, {label = "Veggy", type = "checkbox", color = "green"}, {label = "Radio 95.4", type = "radio", name = "radioStation"}, {label = "Radio 101", type = "radio", name = "radioStation"}, {label = "Hidden", type = "hidden"}, {label = "File", type = "file"}, {label = "Reset", type = "reset"}, {label = "Submit (advanced)", type = "submit"} } print(formTitle) print("Form fields:", #fields) for index, field in ipairs(fields) do print(index .. ". " .. field.label .. " (" .. field.type .. ")") end renderForm(formTitle, fields)
▶ Run Luau
Clear
Reset
◆ Output
Ready.
◆ Form Preview
Run the Luau code to create the form.
← Back to Lua Home