Home › Forums › Backend Issues (wp-admin) › Generate/Create value of field based on another › Reply To: Generate/Create value of field based on another
John – Thank you for the reply. I am attempting to use the JS solution. However, I cannot seem to get the JS to trigger. This is what I have included
<?php
function my_acf_input_admin_footer() {
?>
<script type=”text/javascript”>
(function($) {
alert(“ready now”);
})(jQuery);
</script>
<?php
}
add_action(‘acf/input/admin_footer’, ‘my_acf_input_admin_footer’);
?>
I do not see the alert though. Nor do I see this script when I view source of the page.
Advice/pointers?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.