Just a brief explanation; Currently I have a site where employees login and are able to submit forms to request services. Each employee has a unique ID field that was created using ACF fields. What I would like to happen is that when they submit a form requesting services that this unique ID passes through as a hidden field and is shown on the submission result in Contact Form 7. This would drastically help our company be more productive and reduce time wasted.
Currently I've tried a few different options and nothing has worked, curious if anyone has dealt with a similar issue.
Thank you, Dilion Smith
Someone else might come up with a more elegant or better solution but one possible way would be to echo the current employee id onto the page in js and then replace the cf7 hidden form value with it.
Assuming your hidden field is like so.
In your functions.php file you can create the variable that actually stores the employee id and put it on the page.
In one of your js files you can then add the following to check if that field exists on the current page and then update its value with your employee id.