Hi @mail4priyanka
Thanks for the post.
The issue might be with the loading order of the scripts.
It is also recommended for the acf_form_head() function to be at the very top of your template where you are calling the values of the contribution post type and not in your functions.php file.