• I’ve been trying since yesterday to link the categories to the drop-down menu to populate the category of the posted post. I noticed that in the javascript console on the page where the form is present to have the following error:
    SyntaxError: Invalid escape in identifier: 'Publications \'
    in correspondence with the signaled line there is the following code portion:

    <script type = 'text / javascript' id = 'post-my-contact-form-7-load-js-extra'>
         / * <! [CDATA [* /
         var cf7_2_post_6c13c6bd47 = {"radio_715": "\" <optgroup label = \\ "Publications \\"> <option class = \\ "\\" value = \\ "65 \\"> Jurisprudence <\\ / option> <option class = \\ "\\" value = \\ "66 \\"> Materials <\\ / option> <option class = \\ "\\" value = \\ "67 \\"> Essays <\ \ / option> <\\ / optgroup> <option class = \\ "\\" value = \\ "1 \\"> Uncategorized <\\ / option> \ ""};
         / *]]> * /
         </script>

    How can I solve the problem ?

    I’m running 5.4.6 version

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    apologies for the late reply, I finally managed to take a look at this, but I am not able to reproduce your error.

    It seems that your server is not escaping the dropdown values. I have tripple escapes…

    
    "paris_menu":"\"<optgroup label=\\\"France\\\"><option class=\\\"\\\" ...
    

    what version of WordPress/ PHP are you using?

Viewing 1 replies (of 1 total)
  • The topic ‘Error in dropdown connected with Post Categories’ is closed to new replies.