Syntax Error For custom field with apostrophe

Forums › Forums › Search & Filter Pro › Syntax Error For custom field with apostrophe

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #91588

    My custom field “_sfm_organization_name” keeps getting syntax error when a value has an apostrophe. I read a couple of threads in the forum about an apostrophe issue having been fixed in the latest release. I have the latest (2.3.2). But I am seeing this error.

    Syntax Error

    Trevor
    #91654
    This reply has been marked as private.
    Anonymous
    #91728
    This reply has been marked as private.
    Anonymous
    #91749

    Ok, I resolved the issue by using a gravity form hook to encode the custom field with the php function like so: htmlspecialchars(organization_name, ENT_QUOTES).

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.