Skip to content

Custom field without label, inputName or model results in error #225

Closed
@will-fgmnt

Description

@will-fgmnt

Failing to not specify any of these on a custom fields results in the following error:

vue.esm.js?65d7:1452 TypeError: Cannot read property 'toString' of undefined
    at e.exports.slugifyFormID (eval at <anonymous> (app.js:806), <anonymous>:7:12306)
    at VueComponent.getFieldID (eval at <anonymous> (app.js:806), <anonymous>:7:5340)
    ...

The documentation could be made a little clearer to specify at lease one of these values is required. Our particular use-case was we have a custom submit button which doesn't have a label or model.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions