Average value field of Range fields

Support General Average value field of Range fieldsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33112
    Trang NguyenTrang Nguyen
    Participant

    Hi! Is it possible to have a field that gets a value depending on other fields?

    Ex:
    I have 3 Range fields (Location, Service, Atmosphere) that can be from 0 to 10.
    I have another field (number or whatever) named Rating.

    When I edit the 3 Range fields or save the post, I would like to have an average value of the 3 Range fields and save it to the Rating field.
    (If I set 7, 8, 9 for the Range fields, the Rating field will have a value of 8 in the database).

    Thank you!

    #33125
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Meta Box does not support adding a field that populates value from other fields like that. You can follow this topic to create some JS code to set the field value https://support.metabox.io/topic/calculation-in-fields-success-error-messages-jquery-version/

    #33155
    Trang NguyenTrang Nguyen
    Participant

    Thank you for your info!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.