5

I have a ticket page using a Civi Contribution page and a webform. Is there a way to allow price sets in a webform? What I am looking to do is have a series of options, ($5, $10, $20) and then have a donation amount where they can enter any amount in.

3 Answers 3

6

You can accomplish this by:

  • Installing the webform select or other module.
  • Changing the price field's widget to a select (by default it is a textfield) and enabling the options you wish plus the "other" feature provided by the above.
1
  • That was exactly what I needed! Thank you!
    – Rachel
    Mar 7, 2016 at 17:12
2

CiviCRM pricesets cannot be integrated with webforms, but you should be able to create various contribution ammounts within the webform which may be sufficient depending on your use case. You may find some interesting information on the topic in this forum post and as well as in the civicrm wiki.

2
  • I can create various contribution amounts, but I just don't see a way to have a selection of amounts and then another option to put any amount in. That is where I am stuck.
    – Rachel
    Mar 3, 2016 at 15:17
  • If this is done, CiviEvent/CiviCRM can't be used for changing registration status, partial payments, etc. Am I correct?
    – Zachary
    May 9, 2016 at 19:39
0

Which versions of Civi / Drupal are you on?

I'd have thought you could do this through the webform integration api? Under the CiviCRM tab if you enable "contribution", is there an option for price set there?

Incidentally, why use webform here, and not the CiviCRM contribution page (sorry if I misunderstood)?

5
  • I don't see an option there. I can see that you can add a select list of prices, but I am not sure how to add an additional amount field. The only reason we are using webform is because we need the confirmation email in an html format as we need to embed a ticket image in it. Or we could attach it, but I don't think Civi confirmation email is capable of HTML or attachments. Otherwise we would go that route.
    – Rachel
    Mar 2, 2016 at 19:50
  • We just updated our Civi and Drupal, so we are on the latest versions of each.
    – Rachel
    Mar 2, 2016 at 19:50
  • You may be able to use CiviRules here - on contribution, send email of a certain template, which would let you use HTML. I'm not sure about attachments though. Is the ticket image created individually for each user, or is it the same across all mails that get sent?
    – JohnFF
    Mar 2, 2016 at 21:04
  • The ticket image is the same for everyone. I have not used Civi Rules at all..is that difficult to set up?
    – Rachel
    Mar 3, 2016 at 15:17
  • No, not at all. You can install it as an extension and it is configured through an interface - no code required! The only issue is that, as CiviRules is a fairly new extension, it may not work perfectly, in which case you may need some custom development. If you'd like my help email me at [email protected].
    – JohnFF
    Mar 3, 2016 at 17:21

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.