Skip to content

Variable "url" does not exist. #22

@snoop168

Description

@snoop168

When using the source option to call a javascript function I get the above error. I declare the field like so

        $builder->add('street', 'entity_typeahead', array(
            'class'  => 'AppBundle:Street',
            'render' => 'name',
            'source' => 'test',
            'minLength' => 1,
            'callback' => 'test2'

        ))

If I simply include the 'route' option it seems to resolve the issue and still calls the JS function but not sure why it would be required. Documentation says just one or the other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions