Thanks for your response.
The file isn’t a template file, and it does get loaded on every page. Even still, as I said in my previous post, I added the action and callback functions to functions.php, and it still didn’t get called.
all the code above is in the same file. I even tried moving the my_acf_save_rx() function to functions.php and it still didin’t work.