Created
August 4, 2021 22:57
-
-
Save rafiahmedd/a99fbbf7c240d5a9dcd13e43cf3d4a1d to your computer and use it in GitHub Desktop.
Make Entry uppercase on submission Fluent Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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