I am currently setting up a WordPress dashboard for my clients and I am having some troubles getting the contact form to work in the Dashboard. It looks like the Dashboard cannot load the Javascript from the form.
I am using White Label CMS to have an Elementor page as the Welcome Dashboard page. I have included a WPForms form in this Elementor page.
I hope someone can help me with that!
You can include any files you need to in the admin area by using the enqueue_admin hook.
add_action('admin_enqueue_scripts','load_any_scripts_you_want');
function load_any_scripts_you_want(){
wp_register_script('your-js-handle','PATH TO YOUR FILE GOES HERE', false,'',true);
wp_enqueue_script('your-js-handle');
}
Just add this to your functions.php file and add your path to the file.
You can change "your-js-handle" to anything you want.