Crud: Decimal Separator on Number FieldType

Created on 19 Feb 2019  Â·  3Comments  Â·  Source: Laravel-Backpack/CRUD

Hi, I have the code below to add a number field, but on the screen for the decimals separator it only accepts "dot" , and I would like to change to "comma", but can't find anywhere on the documentation on the decimals separator parameter.

$this->crud->addField([ 'label' => "Total Value", 'type' => 'number', 'name' => 'total', 'prefix' => '€', 'attributes' => ["step" => "any"], ]);

triage

Most helpful comment

That is not a Backpack problem, it's an HTML spec.

You can read about it here: LINK

All 3 comments

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps _a lot_ in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (_How do I do X_) - Gitter Chatroom;
  • Long questions (_I have done X and Y and it won't do Z wtf_) - Stackoverflow, using the backpack-for-laravel tag;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome _awesome_ community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

That is not a Backpack problem, it's an HTML spec.

You can read about it here: LINK

Totally - thank you @pxpm . Backpack uses a simple "number" field - you should be able to do whatever you can with an input type=number.

Was this page helpful?
0 / 5 - 0 ratings