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
| (function ($) { | |
| jQuery(window).on('elementor/frontend/init', function() { | |
| if (elementorModules && elementorModules.frontend) { | |
| class Custom_Steps_Top extends elementorModules.frontend.handlers.Base { | |
| getDefaultSettings() { | |
| return { | |
| selectors: { | |
| buttons: '.e-form__buttons', | |
| form: '.elementor-form', | |
| }, |
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
| $contactApi = FluentCrmApi('contacts'); | |
| $listId = [1]; // ID of the list to pull contacts from | |
| $ListContacts = $contactApi->getInstance() | |
| ->filterByLists($listId) | |
| ->get(); | |
| function getRandomEmail($contactsObject) { | |
| // Get the items array from the object using a loop | |
| $items = []; | |
| foreach ($contactsObject as $contact) { |
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
| add_action( 'elementor_pro/forms/validation', function( $form_record, $ajax_handler ) { | |
| if ( 'Test Form 1' !== $form_record->get_form_settings( 'form_name' ) ) { | |
| return; | |
| } | |
| $fields = $form_record->get('fields'); | |
| $email = $fields['email']['value']; | |
| if ( email_exists( $email ) ) { |
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
| <style> | |
| body #load { | |
| display: block; | |
| height: 100%; | |
| overflow: hidden; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| z-index: 9901; |
NewerOlder