Currency Field
Form Widget
The currency
form widget renders a field for entering a numeric currency value. This field uses the primary currency definition or the Base Currency setting selected Site Definition area.
This field is introduced after installing the Currency plugin (opens new window) available on the October CMS marketplace. You may install it with the following command.
php artisan plugin:install Responsiv.Currency
To display a currency input, define a form field like this:
total_amount:
label: Total amount
type: currency
Property | Description |
---|---|
format | an optional format when previewing the form field, either: long , short or null . Default: null . |
Use the format
property to change the format when displaying the form field in a preview context.
total_amount:
label: Total amount
type: currency
format: short