Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@techjewel
Last active November 10, 2022 03:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/36394eec3fe905dcf9e1fd7c78e70163 to your computer and use it in GitHub Desktop.
Save techjewel/36394eec3fe905dcf9e1fd7c78e70163 to your computer and use it in GitHub Desktop.
// 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