Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rafiahmedd/a99fbbf7c240d5a9dcd13e43cf3d4a1d to your computer and use it in GitHub Desktop.

Select an option

Save rafiahmedd/a99fbbf7c240d5a9dcd13e43cf3d4a1d to your computer and use it in GitHub Desktop.
Make Entry uppercase on submission Fluent Form
add_filter('fluentform_insert_response_data', 'ff_custom_response_data_filter_function', 10, 3);
function ff_custom_response_data_filter_function($formData, $formId, $inputConfigs)
{
if($formId = 12 || 22) {
$names = $formData['names'] = array_map('strtoupper', $formData['names']);
unset($formData['names']);
$others = $formData = array_map('strtoupper', $formData);
$others['names'] = $names;
return $others;
}else{
return $formData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment