Last active
November 10, 2022 03:39
-
-
Save techjewel/36394eec3fe905dcf9e1fd7c78e70163 to your computer and use it in GitHub Desktop.
This file contains 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