Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 933
    • Issues 933
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #322

Closed
Open
Opened Aug 13, 2018 by davej@davej

Contribution page, completing this form on behalf of someone else: JavaScript error for checkbox field

On a contribution page, when "completing this form on behalf of someone else", a JavaScript syntax error occurs when the page includes a profile with a checkbox field and the contact has this field checked.

Steps to replicate:

  1. Create a custom field, Test Checkbox: Alphanumeric, CheckBox with 1 option: label "I agree", value 1.

  2. Create a profile including this field.

  3. Include this profile on a contribution page.

  4. Edit Contact A and check the "I agree" checkbox.

  5. On the contribution page, click "Not demo test, or want to do this for a different person?"

  6. Choose Contact A.

Expected result: Form populates with Contact A's data.

Actual result: JavaScript error: "Syntax error, unrecognized expression: [name=custom_13[1]]". Form does not populate with Contact A's data.

I have a fix for this, will create a PR & link to this issue.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
5.6
Milestone
5.6
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#322