WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Decimals not Working in Number Fields (5 posts)

  1. the.green.timtam
    Member
    Posted 1 year ago #

    Hi,

    On update to the latest version, my number fields won't accept decimals. On submit, I get an "Invalid Value" error. In the past it has worked fine.

    I tried setting the step to 0.5, but that isn't helping (in fact, its bringing me to the "0.5" field, indicating the same error here).

    It's for a 5 star rating system, so we need the 0.5 intervals.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. bekar09
    Member
    Posted 1 year ago #

    Ditto. I am facing the same problem on my site.

  3. bekar09
    Member
    Posted 1 year ago #

    I see that elliot has already committed the fix in github. picked the latest file number.php and it solved the problem.

    number.php

  4. fatherb
    Member
    Posted 1 year ago #

    so, it's ok to download that number.php (linked above in github) and replace the current one in the plugin? This won't upset updates in future or anything?

    The ACF support site appears to be broken at the moment so can't ask there.

  5. the.green.timtam
    Member
    Posted 1 year ago #

    It should be fine, and won't affect updates. The issue will be fixed in the update, and I'm just going to wait for that, as the issue seems exclusive to Chrome (I've used Firefox to change the step).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.