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
| UPDATED: 06.08.2025 | |
| I've developed a custom code for JetFormBuilder post-submit action, which allows you to easily edit the label name, | |
| something that's not possible by default in JetFormBuilder. | |
| Copy the following PHP and create a PHP snippet using your snippet plugins. | |
| Paste the code into the plugin and save it. | |
| ___________________________- | |
| <?php |
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
| UPDATED: 11.08.2025 | |
| It checks to see if a JetFormBuilder form has all required fields filled. | |
| If any of them are missing, the submit button is disabled, and this prevents their submission. | |
| The button activates again when all fields are complete. | |
| Copy the following PHP code and create a PHP snippet using your snippet plugins. | |
| Paste the code into the plugin and save it. | |
| ________________________________________ | |
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
| // This SQl Query For the user who is logged in, it will retrieve all the Boards to which it is assigned. | |
| // Create a new JetEngine Query, with the Query builder. Set the Query type to SQL/AI Query | |
| // Turn on the Advanced/AI mode switcher | |
| // in the SQL Query Area, paste the code | |
| // In the Cast result to instance of object -- Keep stdClass | |
| // You can use the results like jetformbuilder etc.. | |
| SELECT fbs_boards.* | |
| FROM {prefix}fbs_boards AS fbs_boards | |
| JOIN {prefix}fbs_relations AS relations ON fbs_boards.id = relations.object_id |
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
| // place the code in the child theme functions.php or a custom code snippets plugin, like FluentSnippets | |
| // This code work very well with the ACF Date Picker field type. Will return the corrected date format | |
| // You will see the new ACF Date option in the Filter Callback list | |
| // You need to overwrite the date output format in the code | |
| // https://www.advancedcustomfields.com | |
| add_filter( 'jet-engine/listings/allowed-callbacks', 'add_acf_date_callback' ); | |
| add_filter( 'jet-engine/listing/dynamic-field/callback-args', 'add_acf_date_callback_args', 10, 3 ); |
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
| UPDATED: 29.09.2024 | |
| Copy the following HTML code and create a HTML snippet using your snippet plugins. | |
| Paste the code into the plugin and save it. | |
| I’ve developed a new custom feature for JetFormBuilder that allows users to crop images with some great new functionality. | |
| Here’s a quick rundown of what it does: | |
| JetFormBuilder integration: This custom code integrates seamlessly with JetFormBuilder’s file upload system, making the image | |
| inputs interactive and ready for cropping, all through a custom action hook. |
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
| // 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 ); |
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
| 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 { |
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
| #inlinetrytable { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| #inlinetrytable th, #inlinetrytable td { | |
| padding: 10px; | |
| border: 1px solid #ddd; | |
| text-align: left; | |
| } |
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
| // place the code in the child theme functions.php or a custom code snippets plugin. | |
| // Open an widget, dynamic visibility, and search the Check Url Path visibility under the Custom category. | |
| // This visibility condition function checks whether the specified text is present in the current page's URL. For example: | |
| // example.com/test/test2 | |
| // If you specify "test2" in the visibility settings (value field), the rule will be applied whenever "test2" is found anywhere in the current page's URL. | |
| add_action( 'jet-engine/modules/dynamic-visibility/conditions/register', function( $conditions_manager ) { |
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
| Updates Made 31.08.2024: | |
| Used input.onClear(): This method is used to clear the input field when available. | |
| Checked for Input Type: Added a check to skip adding the clear button for checkbox and radio input types to avoid issues. | |
| Description: | |
| Copy the following HTML code and create a HTML snippet using your snippet plugins. Paste the code into the plugin and save it. | |
| This code enhances the input fields in JetFormBuilder forms by adding a clear button that allows users to easily clear the input content. | |
| The clear button appears when there is input and disappears when the input is empty. It also includes a smooth hover effect for the | |
| clear button, changing its background and font colors. |
NewerOlder