> For the complete documentation index, see [llms.txt](https://docs.newbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.newbot.io/prebuilt-formats-for-widget/form.md).

# Form

![](https://157610098-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mj-oUrX0RfFWjUCK2Ro%2F-MjjCxCqkaSKSs3T7WtP%2F-MjjGvshG_cZaROgTYlv%2Fimage.png?alt=media\&token=2d58c48f-856b-4e27-bd74-4cb5b26aba50)

```typescript
options = [ 
    { 
        name: 'email', 
        placeholder: 'Please enter your email', 
        type: 'email', 
        label: 'Email', 
        default: 'xyc@xyc.com' 
    },
    {   
        name: 'text_aread', 
        placeholder: 'Please enter text', 
        type: 'text_area', 
        label: 'Large Text', 
        default: 'Sample text' 
    },
    { 
        name: 'text', 
        placeholder: 'Please enter text', 
        type: 'text', 
        label: 'text', 
        default: 'sample input' 
    }
    {
        name: 'select',
        label: 'Select Option', 
        type: 'select', 
        options: [
            { label: 'Paris', value: 'paris' },
            { label: 'London', value: 'london' }
        ]
    }
]
@Format('form', options)
> Hey
Prompt()
Log(:payload)
```

You can retrieve the data with the magic variable *:payload*
