I am having trouble with a number (decimal) field that is not validating correctly on my node edit pages. Although the input for a price field is for example "6,00" I am getting the error message "The value in Price has to be divisible by 0.01.". Seems to validate for a float value?!

Is there a way to disable this module on admin pages or specific fields?

Thanks in advance for your help!

Comments

toni4i created an issue. See original summary.

nikunjkotecha’s picture

Status: Active » Postponed (maintainer needs more info)

Hi ABaier, any more details available to help reproduce the issue?

I created a decimal and float field. For decimal we have to provide scale and precision and it works as expected. For "6,00" (with comma) it gives me "Please enter a valid number." message only and not the one specified in description.

abaier’s picture

Thanks for bringing this up again. Since I had this issue quite a while ago and I was not able to reproduce it, I think we can close it as "works as expected".

abaier’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
nikunjkotecha’s picture

Thanks @ABaier for quick response :). Inching very close to stable release now. Also, I'll try best to respond back to all issues (for 8.x) as early as possible.

Greenskin85’s picture

I got this error a long time ago, and was able to fix it with that https://www.drupal.org/project/drupal/issues/2230909

But now, after installing the clientside_validation_jquery modul, i get this error again (except i uninstall the modul again)

Field for Longitude and Latidude settings:
precision: 14
scale: 8

Throws the error:
The value in Longitude has to be divisible by 0.00000001.

for values like:
58,26736600
8,72369500
5.6
0.1

Greenskin85’s picture

Category: Support request » Bug report
Status: Closed (works as designed) » Needs review
Issue tags: +decimal validation
avpaderno’s picture

Version: 8.x-1.0-rc3 » 8.x-1.x-dev
Issue tags: -decimal validation +Decimal numbers
nikunjkotecha’s picture

Status: Needs review » Active

Moving to Active as there is no patch or PR for review.

Please help with exact steps to reproduce for futher work.

nikunjkotecha’s picture

Version: 8.x-1.x-dev » 3.0.x-dev