Created
August 17, 2021 19:04
-
-
Save techjewel/671722e040e618fcbef147e6cd0a9f6c to your computer and use it in GitHub Desktop.
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
| // required css | |
| <style> | |
| span.ff_submitting { | |
| display: none; | |
| } | |
| .ff-working span.ff_submitting { | |
| display: block; | |
| } | |
| .ff-working span.ff_on_normal { | |
| display: none; | |
| } | |
| </style> | |
| <?php | |
| add_filter('fluentform_rendering_field_data_button', function ($data, $form) { | |
| $data['settings']['button_ui']['text'] = '<span class="ff_on_normal">' . $data['settings']['button_ui']['text'] . '</span><span class="ff_submitting">Submitting</span>'; | |
| return $data; | |
| }, 10, 2); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment