Skip to content

Instantly share code, notes, and snippets.

View Joe-Bloggs's full-sized avatar

Joe Bloggs Joe-Bloggs

  • Quuensland, Australia
View GitHub Profile
@Lonsdale201
Lonsdale201 / code
Last active December 26, 2025 02:36
JetFormBuilder - Check ajax submit success or other status
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets
// if you want to handle other error statuses, change "invalid_email" to the one you want to monitor.
document.addEventListener( 'DOMContentLoaded', function() {
const { addAction } = window.JetPlugins.hooks;
addAction( 'jet.fb.observe.after', 'test/onSubmit', init );
function init( observable ) {
observable.form.submitter.status.watch( onFormSubmit );
@Qubadi
Qubadi / gist:5793d9bd3fbc996fb35cee7e50031f33
Last active November 7, 2025 16:43
Jetformbuilder customize the Choose File and drag-and-drop of images
UPDATED: 04.11.2024
Copy the following HTML code and create a HTML snippet using your snippet plugins.
Paste the code into the plugin and save it.
Don't forget to add MIME types (image formats), for example, PNG and JPEG, in the media field where it shows 'Allow MIME types.
______________________________________________________
<style>
/* Custom styles for the file upload field */
.jet-form-builder__field-wrap.jet-form-builder-file-upload {