Answers.Body: <p>A little late I know, but as noted in <a href="https://craftcms.stackexchange.com/a/40753/3574">my answer here</a>, Money fields have an <code>amount</code> property that (with a little reformatting) you can use to display the value wherever you need it.</p>
  <blockquote>
  <p>Further, if I enter the value &quot;100&quot; in the frontend form and save an entry, it becomes &quot;1&quot;.</p>
  </blockquote>
  <p>Money fields store values as cent/hundredths. So to store <code>100</code> you need to pass <code>10000</code> as the value from your form</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-27T18:47:53.167Z
Answers.Text: Thanks for your response. This makes working with Entry Forms a bit "complicated". But I solved it with a "helper input". I set the type of the input for the money field to "hidden" and add one more input where the money value can be set. I use JS to monitor if the value of the helper input changes and if so, I get the value, multiply it by 100 and set the new value for the hidden input.
Answers.UserDisplayName: obs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-28T10:09:11.997Z
Answers.Text: Yeah unfortunately that's probably the only way to go unless you want to use a custom controller and do the conversion there. At time of writing, there's very little documentation about using Money Fields - def something P&T could improve
Answers.UserDisplayName: Tom Davies
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-26T12:36:30.493Z
Answers.LastActivityDate: 2023-04-26T12:36:30.493Z
Answers.UserDisplayName: Tom Davies
Body: <p>It's the first time I have been using a &quot;money&quot; field and don't really know how to use it. The <a href="https://craftcms.com/docs/4.x/money-fields.html#settings" rel="nofollow noreferrer">docs</a> don't tell much about it so I ask for help here.</p>
  <p>To get the value including a currency symbol, I can use the <code>| money</code> filter. But how can I get the value only? I want to use it with a frontend form and therefore need the value only. Of course I could use the replace filter but that seems like a hacky workaround to me.</p>
  <p>Further, if I enter the value &quot;100&quot; in the frontend form and save an entry, it becomes &quot;1&quot;.</p>
  <p>Is there an easy way to make handling money values work with frontend forms or would it be better to change the field to a number field?</p>
  
Tags: <filter><fieldtypes><frontend-form>
Title: Working with "money" values
ThreadText: # Working with "money" values
  
  (Asked by: username_0 on 2022-11-17)
  
  It's the first time I have been using a "money" field and don't really know how to use it. The [docs](https://craftcms.com/docs/4.x/money-fields.html#settings) don't tell much about it so I ask for help here.
  
  To get the value including a currency symbol, I can use the `| money` filter. But how can I get the value only? I want to use it with a frontend form and therefore need the value only. Of course I could use the replace filter but that seems like a hacky workaround to me.
  
  Further, if I enter the value "100" in the frontend form and save an entry, it becomes "1".
  
  Is there an easy way to make handling money values work with frontend forms or would it be better to change the field to a number field?
  
  **Tags:** filter, fieldtypes, frontend-form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-04-26. Score: 2
  
  A little late I know, but as noted in [my answer here](https://craftcms.stackexchange.com/a/40753/3574), Money fields have an `amount` property that (with a little reformatting) you can use to display the value wherever you need it.
  
  > Further, if I enter the value "100" in the frontend form and save an entry, it becomes "1".
  
  Money fields store values as cent/hundredths. So to store `100` you need to pass `10000` as the value from your form
  
  > **Comments:**
  > **username_0**: Thanks for your response. This makes working with Entry Forms a bit "complicated". But I solved it with a "helper input". I set the type of the input for the money field to "hidden" and add one more input where the money value can be set. I use JS to monitor if the value of the helper input changes and if so, I get the value, multiply it by 100 and set the new value for the hidden input.  
  > **username_1**: Yeah unfortunately that's probably the only way to go unless you want to use a custom controller and do the conversion there. At time of writing, there's very little documentation about using Money Fields - def something P&T could improve  
  
  ---
  
  