Support

Account

Home Forums General Issues Numeric fields group with overall max value

Unread

Numeric fields group with overall max value

  • Hey there,

    I am planning on buying ACF Pro, as I want to use it on a couple of CPTs and frontend forms. On one CPT I want to do something, which I am not sure if it is even possible or doable with AFC. I have to admit, that I am not an expert with PHP. Therefor I am struggling with this one.

    I want to add a couple of numeric only fields to a form. Each field has a base value. The user will be able to lower or raise that value within a certain range. But he only should be able to add a max value overall. Here’s an example:

    Available points: 20

    • Field 1 Value: 10 +-
    • Field 2 Value: 12 +-
    • Field 3 Value: 9 +-
    • Field 4 Value: 15 +-
    • Field 5 Value: 7 +-

    Whenever the user decreases or raises a number it should be added to or removed from the “Available points” value. The user should only be able to add points until the “Available points” reaches zero.

    I hope it is somewhat clear what I am trying to do. As I said, I am not sure if ACF is capable of doing this.

    Thanks for your help in advance.

Viewing 1 post (of 1 total)

The topic ‘Numeric fields group with overall max value’ is closed to new replies.