2

is there a way to set a standard for the dropdown of the recurring units (yearly, monthly, etc.) on a civi contribution site? We would like to have "yearly" instead of "monthly".

I tried to find sth in the configuration but apparently there is no easy way to do so.

Thanks for your help in advance.

2

The recurring configuration is present on contribution page under amount tab. There you can select the units that you want user to select when doing donation or payment.

The units supported by Civi are Year, Month, Week and Day

Doc: https://docs.civicrm.org/user/en/latest/contributions/online-contributions/#amounts-tab

| improve this answer | |
  • thanks for your answer, but I am trying to change the default unit "monthly" to "yearly" – franq Jul 24 at 8:42
  • for the existing record you mean? i.e user who have on going recurring contribution – Pradeep Nayak Jul 24 at 8:54
  • no. i mean on the contribution site, when a new user wants to do a donation, the default recurring unit is "monthly", but i want to have "yearly" as default in the dropdown – franq Jul 24 at 16:36
  • I think you'd need to write a little extension. Take a look at docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/… where it sets a default. The field you want is pledge_frequency_unit. – Demerit Jul 30 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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