Form Builder

This configuration is for creating Machine Translation settings using Form Elements

Object Structure

  • type: string

    • string

    • number

  • form: string

    • input-text

    • input-number

    • input-range

    • input-password

    • select

    • textarea

  • name: string

  • title: string

  • default: string

    • string

    • number

  • options: array[] => object (optional)

    • name: string

    • value: string

  • styles: object (optional)

  • launcher: object (optional)

    • show: boolean

    • fullwidth: boolean

{
    "formBuilder": [
        { "type": "string", "form": "input-text", "name": "api_key", "title": "API Key*", "default": "",
            "launcher": { "show": true }
        },        
        { "type": "string", "form": "select", "name": "formality", "title": "Formality", "default": "default",
            "options": [
                { "name": "Default", "value": "default" },
                { "name": "Formal", "value": "more" },
                { "name": "Informal", "value": "less" },
                { "name": "Formal (if available)", "value": "prefer_more" },
                { "name": "Informal (if available)", "value": "prefer_less" }
            ],
            "launcher": { "show": true }
        },
        { "type": "string", "form": "select", "title": "Preserve Formatting", "name": "preserve_formatting", "default": "0",
            "options": [
                { "name": "No (default)", "value": "0" },
                { "name": "Yes", "value": "1" }
            ],
            "launcher": { "show": true }
        }
    ]
}

Last updated