Skip to content

Error: demo_user.js not auto-filling first name and last name #20

Description

@alxiong

there are a few issues/typo in gov-dmv/.../demo_user.js:

  1. this line should be $('input[name="confirm_password"]').val(user_data.password ? user_data.password : "");, otherwise there will be console err saying cannot read unknown property of password -- user_data doesn't have a property called attributes, thus when accessing user_data.attributes.password, it would be an unknown property.
  2. the default_attributes here needs to add two more fields -- first_name and last_name, otherwise those two fields won't be auto-filled. (based on the logic here)

thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions