Answers.Body: <p>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. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T19:06:10.707Z
Answers.LastActivityDate: 2017-11-28T19:06:10.707Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Coleman is listed as a maintainer for <a href="https://www.drupal.org/project/webform_calculator" rel="nofollow noreferrer">webform_calculator</a> so there is a very strong chance that it works well with CiviCRM :-)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-23T15:41:17.770Z
Answers.Text: Second that! 
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-23T16:20:48.617Z
Answers.Text: Thank you Aidan, but this does not help me a lot ; hoping for Coleman. What do you mean Karin ?
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-23T09:39:30.027Z
Answers.LastActivityDate: 2017-11-23T09:39:30.027Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>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.</p>
  
  <p>Here is a snipet of what we have put in the Formula value field</p>
  
  <blockquote>
    <p>({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)</p>
  </blockquote>
  
  <p>Outcome for us is something like this:</p>
  
  <p><a href="https://i.sstatic.net/ApARg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ApARg.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-24T11:40:08.250Z
Answers.Text: 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 ?
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-26T20:35:14.463Z
Answers.Text: 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
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-26T20:36:09.627Z
Answers.Text: ps I thought Conditionals was now in-built in Webform
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T15:33:29.387Z
Answers.Text: 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.
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-23T21:47:45.557Z
Answers.LastActivityDate: 2017-11-23T21:47:45.557Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>Has anybody experienced Webform Calculator Module with civicrm ?</p>
  
  <p>Could it, for instance, enable conditions such as :</p>
  
  <p>if field1= YES, then field3 = field2</p>
  
  <p>or</p>
  
  <p>if field1= YES, then field2=field2+30</p>
  
  <p>Should (or can) field1, field2, field3 be civicrm field, or simple webform fieldsets ?</p>
  
Tags: <webform-civicrm>
Title: Looking for Webform Calculator Experience
ThreadText: # Looking for Webform Calculator Experience
  
  (Asked by: username_0 on 2017-11-23)
  
  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 ?
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2017-11-28. Score: 0 | Accepted answer
  
  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.
  
  
  ---
  
  ### Answer by username_2 on 2017-11-23. Score: 1
  
  Coleman is listed as a maintainer for [webform\_calculator](https://www.drupal.org/project/webform_calculator) so there is a very strong chance that it works well with CiviCRM :-)
  
  > **Comments:**
  > **username_3**: Second that!   
  > **username_0**: Thank you username_2, but this does not help me a lot ; hoping for Coleman. What do you mean Karin ?  
  
  ---
  
  ### Answer by username_1 on 2017-11-23. Score: 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](https://i.sstatic.net/ApARg.png)](https://i.sstatic.net/ApARg.png)
  
  > **Comments:**
  > **username_0**: 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 ?  
  > **username_1**: 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  
  > **username_1**: ps I thought Conditionals was now in-built in Webform  
  > **username_0**: 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.  
  
  ---
  
  