I am working on a sort of intranet where there are different user levels that have access to certain areas of the website.
I am creating a form on the front end and am having a checkbox area so that if the user checks it, that area then becomes available.
I currently have a ACF checkbox field for users so that i can select which areas they can access, but i am also creating a form on the front end where users can opt-in to get access to areas.
So the idea is that they access the form on the front end and if they tick the checkbox and submit the form, it will automatically check the other ACF checkbox for that user to turn that area on. Is that possible for 2 fields to communicate to each other, and if so how can i do so?
You would use a combination of an acf/save_post filter https://www.advancedcustomfields.com/resources/acfsave_post/ and update_field() https://www.advancedcustomfields.com/resources/update_field/
In the save post filter you would get the value from the checkbox submitted and update the other checkbox.