Body: <p>Drupal7, Civi5.12
  I've used webform conditionals to 'set to' values for fields. Now I want to run calculations on those fields using webform_calculate,</p>
  
  <p>But webform_calculate won't recognise the 'set to' values.
  Any ideas?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-26T20:15:11.787Z
Comments.Text: Davy, does this work with pure webform components - ie is it really webform_civicrm that is the problem?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-27T11:42:10.077Z
Comments.Text: I’m 99% sure we got this working; Make sure your set to fields are of type Number and that all fields involved in the calculation are on the same page. We recently worked on a patch for webform_calculator module  that allows you to have fields across multiple pages but have not had a chance to PR that yet.
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-18T13:07:41.073Z
Comments.Text: @KarinG-SemperIT Can you please confirm whether this functionality is working as of now?  I'm using CiviCRM 5.27.5, Webform 7.x-4.23, and Webform Calculator 7.x-2.0-beta1.  If I set an amount in a number field based on a conditional, then attempt to use the participant fee field as a formula (so I can calculate reg amount-discount) the participant fee does not get set.
Comments.UserDisplayName: Lesley Carter - BackOffice
Tags: <webform-civicrm>
Title: How to fix: webform_calculate doesn't read values in fields that have been 'set to' by conditionals
ThreadText: # How to fix: webform_calculate doesn't read values in fields that have been 'set to' by conditionals
  
  (Asked by: username_0 on 2019-04-26)
  
  Drupal7, Civi5.12
  I've used webform conditionals to 'set to' values for fields. Now I want to run calculations on those fields using webform\_calculate,
  
  But webform\_calculate won't recognise the 'set to' values.
  Any ideas?
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: Davy, does this work with pure webform components - ie is it really webform_civicrm that is the problem?  
  > **username_2**: I’m 99% sure we got this working; Make sure your set to fields are of type Number and that all fields involved in the calculation are on the same page. We recently worked on a patch for webform_calculator module  that allows you to have fields across multiple pages but have not had a chance to PR that yet.  
  > **username_3**: @KarinG-SemperIT Can you please confirm whether this functionality is working as of now?  I'm using CiviCRM 5.27.5, Webform 7.x-4.23, and Webform Calculator 7.x-2.0-beta1.  If I set an amount in a number field based on a conditional, then attempt to use the participant fee field as a formula (so I can calculate reg amount-discount) the participant fee does not get set.  
  
  ---
  
  ## 0 answers
  
  