0

When total amount is added to a Webform CiviCRM it comes in default as type = CiviCRM Number. How do I make this into a Radios & Other Amounts field?

1 Answer 1

4

From the Build tab:

  • Edit the Element
  • Change CiviCRM Number -> CiviCRM Options
  • Add some Options
  • Save

That will give you Radio buttons - if you want to add an Other Amount option ->

From the Build tab:

  • Edit the Element
  • Change CiviCRM Options -> Radios other
  • Save

To ensure your Other Amount appears underneath the Radios -> add this -> From the Settings tab -> select CSS/JS copy this into the Javascript box ->

jQuery('.js-webform-radios-other-input').insertAfter(jQuery('#edit-civicrm-1-contribution-1-contribution-total-amount-radios'));

Save

End result:

enter image description here

3
  • Works perfectly, Thanks Karin
    – Dave T
    Jan 31, 2022 at 14:50
  • Is the Drupal Select Other module also needed to do this?
    – Dave T
    Jan 31, 2022 at 16:06
  • No - radios other is native Webform in D9 Jan 31, 2022 at 18:00

Your Answer

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

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