1

Has anybody experienced Webform Calculator Module with civicrm ?

Could it, for instance, enable conditions such as :

if field1= YES, then field3 = field2

or

if field1= YES, then field2=field2+30

Should (or can) field1, field2, field3 be civicrm field, or simple webform fieldsets ?

0

you could use the 'share address of' option, set that to 'user selects' then change it to a yes/no type field and use conditionals on that.

1

Coleman is listed as a maintainer for webform_calculator so there is a very strong chance that it works well with CiviCRM :-)

  • Second that! 😀 – KarinG - Semper IT Nov 23 '17 at 15:41
  • Thank you Aidan, but this does not help me a lot ; hoping for Coleman. What do you mean Karin ? – Jacques-Marie Moranne Nov 23 '17 at 16:20
1

Yes we have used Calculator for some pretty complex stuff - first off you switch the "contribution amount' field to use the Formula widget. then you build up your calculation in the Formula Value field.

Here is a snipet of what we have put in the Formula value field

({civicrm_1_contribution_1_cg10_custom_118}*30)+({civicrm_1_contribution_1_cg10_custom_122}*25)+({civicrm_1_contribution_1_cg96_custom_287}*80)+({civicrm_1_contribution_1_cg96_custom_293}*30)+({civicrm_1_contribution_1_cg96_custom_294}*30)+({civicrm_1_contribution_1_cg96_custom_295}*8)

Outcome for us is something like this:

enter image description here

  • Thank you Pete : I keep this in mind (can be an alternative to my second example). But what I want to actually do is : a Webform to record a couple for an event, each with his/her address, so that if they have the same address, the second is automatically filled with the first. (I would rather expect a conditionals extension). Any idea ? – Jacques-Marie Moranne Nov 24 '17 at 11:40
  • sorry. reread your question. you could use the 'share address of' option, set that to 'user selects' then change it to a yes/no type field and use conditionals on that. i don't think you can add data in to a field from another field on the form unless you just js – petednz - fuzion Nov 26 '17 at 20:35
  • ps I thought Conditionals was now in-built in Webform – petednz - fuzion Nov 26 '17 at 20:36
  • Thanks again Pete ; I did not think of that "share address" option, which looks fine for my problem. BTW, Conditionals are included in webform (I use them a lot), but are too limited to meet my wishes. If you put it as an answer, I will accept it. – Jacques-Marie Moranne Nov 28 '17 at 15:33

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.