Form

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

Last updated