# Debug a Donation Form - Debug a Donation Form

**URL:** <https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [January 27, 2026, 1:20am UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634 "2026-01-27T01:20:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MickieRocker](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MickieRocker](https://forum.freecodecamp.org/u/MickieRocker)\
**Post date:** [January 27, 2026, 1:20am UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/1 "2026-01-27T01:20:12Z")

</div>

### Tell us what’s happening:

1. Your checkbox input should not have a required attribute.  
Error however I do not have a required attribute.

### Your code so far

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Donation Form</title>
</head>
<body>
    <h1>Donation Form</h1>
    <form>
        <label for="name">Full Name:</label>
        <input type="text" id="name" name="name" required>
        
        <label for="email">Email Address:</label>
        <input type="email" id="email" name="email" required>
        
        <label for="donation">Donation Amount ($):</label>
        <input type="number" id="donation" name="amount" required>
        
        <label for="subscribe">Subscribe</label>
        <input type="checkbox" id="subscribe" name="subscribe">
        
        <input type="submit" value="Send">
    </form>
</body>
</html>

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36`

### Challenge Information:

Debug a Donation Form - Debug a Donation Form

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-debug-donation-form/debug-donation-form)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [January 27, 2026, 1:40am UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/2 "2026-01-27T01:40:43Z")

</div>

You can’t change the names and ids of the elements from what they are at the beginning.

---

<div class="post-metadata">

**Author:** ![MickieRocker](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MickieRocker](https://forum.freecodecamp.org/u/MickieRocker)\
**Post date:** [January 29, 2026, 10:10pm UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/3 "2026-01-29T22:10:53Z")

</div>

Still don’t understand how I am changing any of the names and id’s when I am not getting errors their, only getting error on the Checkbox input that in my code does not have a “required” element.

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [January 29, 2026, 10:25pm UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/4 "2026-01-29T22:25:22Z")

</div>

Imagine the test selects the checkbox by it’s “name” attribute.

It will select the original “name” attribute and it does not exist, therefore that test fails. Does not really matter in that case if it has the `required` element or not, since the test cannot find it.

---

<div class="post-metadata">

**Author:** ![MickieRocker](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MickieRocker](https://forum.freecodecamp.org/u/MickieRocker)\
**Post date:** [January 30, 2026, 5:34am UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/5 "2026-01-30T05:34:31Z")

</div>

Thanks man! oh dear how I missed that is beyond me!

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [January 30, 2026, 11:59am UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/6 "2026-01-30T11:59:41Z")

</div>

Don’t do anything that the instructions don’t ask you to do.

Don’t copy code from the forum.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [February 27, 2026, 12:00pm UTC](https://forum.freecodecamp.org/t/debug-a-donation-form-debug-a-donation-form/775634/7 "2026-02-27T12:00:19Z")

</div>

Closed on February 27, 2026, 12:00pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
