• Resolved mattbaill

    (@mattbaill)


    Hi,

    I’d like to know if it’s possible and how to add an attribute to the form tag of my form.
    I’m trying to integrate Memberstack and I need to add the attribute ms-signup=”true” to the form tag in order for Memberstack to detect the form.

Viewing 1 replies (of 1 total)
  • Hi @mattbaill,

    You can do this using a filter hook, like this:

    
    add_filter('hf_form_html', function($html) {
        $html = str_replace('<form ', '<form ms-signup="true" ', $html );
        return $html;
    });
    

    Hope that helps. If not, let us know please!

Viewing 1 replies (of 1 total)

The topic ‘Add attribute to Form tag’ is closed to new replies.