Answers.Body: <p>Seems to be a Drupal problem :</p>
  
  <p>Even if you work in french, you must define every numeric Webform fields in english format (coma thousand separator, period decimal separator).</p>
  
  <p>Contribution amount is an example, but the same problem exists also for any numeric Webform "new component".</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-17T10:29:38.547Z
Answers.LastActivityDate: 2016-04-17T10:29:38.547Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>I use CiviCRM Webform Integration for Event Registration and Payment ; and I use Conditionals to calculate the Contribution Amount :</p>
  
  <p>If ... Then Conditional Amount is set to 45,00  (french format)</p>
  
  <p>When I submit the registration, I get the following error :</p>
  
  <p>Warning : preg_match(): Compilation failed: nothing to repeat at offset 464 dans webform_number_format_match() (ligne 831 dans /home/paroisse/public_html/test/drupal/sites/all/modules/webform/components/number.inc).
  Contribution Amount field value must format numbers as "12 345,68".</p>
  
  <p>(But, if I set this Conditional Amount = 45,00 manually, the submission is OK.)</p>
  
  <p>Is there any explanation for this error ?</p>
  
Tags: <webform-civicrm>
Title: Contribution Amount via Webform Conditionals (Error)
ThreadText: # Contribution Amount via Webform Conditionals (Error)
  
  (Asked by: username_0 on 2016-04-16)
  
  I use CiviCRM Webform Integration for Event Registration and Payment ; and I use Conditionals to calculate the Contribution Amount :
  
  If ... Then Conditional Amount is set to 45,00 (french format)
  
  When I submit the registration, I get the following error :
  
  Warning : preg\_match(): Compilation failed: nothing to repeat at offset 464 dans webform\_number\_format\_match() (ligne 831 dans /home/paroisse/public\_html/test/drupal/sites/all/modules/webform/components/number.inc).
  Contribution Amount field value must format numbers as "12 345,68".
  
  (But, if I set this Conditional Amount = 45,00 manually, the submission is OK.)
  
  Is there any explanation for this error ?
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-04-17. Score: 1
  
  Seems to be a Drupal problem :
  
  Even if you work in french, you must define every numeric Webform fields in english format (coma thousand separator, period decimal separator).
  
  Contribution amount is an example, but the same problem exists also for any numeric Webform "new component".
  
  
  ---
  
  