0

The real question here is how to make it optional. Off the top of my head: make "No Thank You" option selected/default choice with a grain of JavaScript. Or https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/ - however the latter feels a bit of overhead.

Note Cheers @petednz-fuzion

So there is a "Membership" section enabled and "Contribution Amounts section enabled" without Price set so "Fixed Contribution Options" is being used and "Allow other amounts" also.

This is how

6
  • I can't picture what you are referring to. eg do you see 'additional contribution' at dmaster.demo.civicrm.org/civicrm/admin/contribute/…
    – petednz - fuzion
    Feb 8, 2023 at 18:18
  • @petednz-fuzion Right, sorry, it is more complex indeed. So there is a "Membership" section enabled and "Contribution Amounts section enabled" without Price set so "Fixed Contribution Options" is being used and "Allow other amounts" also. Have edited the initial notes.
    – yurg
    Feb 8, 2023 at 20:52
  • why not just use a Price Set?
    – petednz - fuzion
    Feb 9, 2023 at 22:26
  • @petednz-fuzion Would a Price Set usage eliminate Additional Contribution Required attribute? Why is it Required at all?
    – yurg
    Feb 10, 2023 at 11:33
  • Additional Contribution pre-dated Price Sets. And i don't know which version of 'required' you mean. THe system does not 'require' it, but the system can 'require' it of the user (ie they 'must' add an additional contribution. I think Price Sets are what you need to look at using
    – petednz - fuzion
    Feb 10, 2023 at 19:40

1 Answer 1

2

I believe the solution you are looking for is available via Price Sets

1
  • Thank you, accepting the answer even if not quite sure re: the logic behind this.
    – yurg
    Dec 14, 2023 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.