Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Last active September 13, 2023 04:49
Show Gist options
  • Save aimahdi/511b2650525e4e0832f7936ec470c079 to your computer and use it in GitHub Desktop.
Save aimahdi/511b2650525e4e0832f7936ec470c079 to your computer and use it in GitHub Desktop.
add_filter('fluentform/response_render_tabular_grid', function ($response, $field, $form_id, $isHtml = false) {
$field['raw']['settings']['grid_columns'] = ['Ashik'=>'Ashik', 'Ruman'=>'Ruman'];
$field['raw']['settings']['grid_rows'] = ['Ibrahim'=>'Ibrahim', 'Nadim'=>'Nadim', 'Tahmid'=>'Tahmid', 'Mahdi'=>'Mahdi'];
return \FluentForm\App\Modules\Form\FormDataParser::formatTabularGridFieldValue($response, $field, $form_id, $isHtml);
}, 9, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment