When I create a new donation form then save the form without checking "Send automatic acknowledgements with receipts."
then the form does not submit.

CommentFileSizeAuthor
#2 3038382-2.patch9.88 KBgnuget

Comments

gnuget created an issue. See original summary.

gnuget’s picture

Status: Active » Needs review
StatusFileSize
new9.88 KB

The problem with this is even if the "receipts" option is unchecked the fields hidden are required, that is the reason of why the form is not submitted because those fields should only be required if the "receipts" option is checked.

What I did to fix the problem is load the fields via Ajax when the 'receipts' option is checked and remove them if it is not in this way the fields don't even exist (and therefore aren't required) if the checkbox is unchecked.

Patch with the fix attached.

cedewey’s picture

Status: Needs review » Reviewed & tested by the community

I just tested your patch and it works. Thanks!

  • gnuget committed 1943c45 on 8.x-1.x
    Issue #3038382 by gnuget, cedewey: Cannot save donation form if site...
gnuget’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.