public static function add_form_row()
 {
     //check_ajax_referer( 'frm_ajax', 'nonce' );
     $field_id = absint($_POST['field_id']);
     if (!$field_id) {
         wp_die();
     }
     $field = FrmField::getOne($field_id);
     $args = array('i' => absint($_POST['i']), 'parent_field' => absint($field->id), 'form' => isset($field->field_options['form_select']) ? $field->field_options['form_select'] : 0, 'repeat' => 1);
     $field_name = 'item_meta[' . $args['parent_field'] . ']';
     // let's show a textarea since the ajax with multiple rte doesn't work well in WP right now
     global $frm_vars;
     $frm_vars['skip_rte'] = true;
     $response = array();
     ob_start();
     FrmProFormsHelper::repeat_field_set($field_name, $args);
     $response['html'] = ob_get_contents();
     ob_end_clean();
     global $frm_vars;
     $response['logic'] = FrmProFormsHelper::hide_conditional_fields($frm_vars);
     echo json_encode($response);
     wp_die();
 }