I’m wondering if there is a quick way of getting fields in to a js file.
I have a options page made with ACF and I need the fields to be available for ex. a slider.
Thanks for the post.
Your question is not quite clear, would you like the field settings or the actual field values onto the file?
ACF field values can be obtained from the $_POST data as $_POST[‘acf’][field_key]