I have two custom post types, Training Courses and Trainees. Training Courses have a Trainee Relationship custom field that is filtered automatically by the Trainee custom post type, a numeric custom field named Total number of spaces that holds the number of maximum spaces that can exist in the training course and a numeric custom field named Spaces available that holds the number of available spaces in the training course. I am looking for a way to be able to have the last field, Spaces available, automatically calculated by subtracting the number of trainees being selected from the Trainee Relationship custom field, from the total number of available spaces while adding/editing a training course. Is that possible?
I currently want this for a backend system so I won’t be displaying anything on the frontend.
Using Advanced Custom Fields 5.7.7
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users