Home Forums Add-ons Repeater Field Javascript event not working after ajax call


Javascript event not working after ajax call

  • I have build a search/result page with FacetWP and ACF.

    On the result page I add the possibility to edit one specific repeater fields for each result listed.

    To do that I include in the FacetWP loop this code:

    	$options = array(
    		'id' => 'acf-form_'.$post->ID,
    		'post_id'       => $post->ID,
    		'post_title'    => false,
    		'post_content'  => false,
    		'field_groups' => array('group_6166044822675'),
    		'fields' => array('field_6166066864387'),

    On the main page the button “add row” work well.

    When with a Facet I refine the result to show only the post from October 2021 or any other specification, FacetWP import the new search result via ajax.

    But this time if I click on a “add row” button, nothing happen.

    The ACF javascript and the new HTML code imported via ajax by FacetWP are not binded.

    Is there a way to solve this ?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.