Hi,
I currently have a frontend form which is working nicely.
But I’d like to add a custom select box to it, so I can get its values via the $_POST variable on save. The reason I want this is because the select box contains functionality which I need and prefer over the core ACF functionality.
At the moment I am processing my form via the the ‘acf/pre_save_post’ and ‘acf/save_post’ hooks.
1) How can I add a custom select box to my form?
2) How can I process its values on save?
Best regards!
Hi @philex ,
Thanks a lot for contacting us.
You can inject the selection using the html_before fields in the acf form hook
https://www.advancedcustomfields.com/resources/acf_form/
I hope this helps.
That solved the issue, thank you!