PageSourceSearch

https://topclassactions.com/wp-content/plugins/tca-gf-email-alternator-for-leads/js/form-check.js?ver=1.1

js topclassactions.com collected 2026-10-02 02:27:48 UTC 2,212 bytes, 51 lines download raw bytes

1jQuery(document).ready(function($) {
2    var financialInstitution = $('.financial-institution select').attr('id');
3    if (financialInstitution) {
4        var getformId = financialInstitution.split('_');  // Split the ID into parts
5        var formID = getformId[1];
6        var fieldID = getformId[2];
7    }
8    var conditionalemailId = $('.conditional-email-field input').attr('id');
9    if (conditionalemailId) {
10        var getemailId = conditionalemailId.split('_');  // Split the ID into parts
11        var emailId = getemailId[2];
12    }
13    
14    $('.financial-institution select').on('change', function() {
15        let selectedValue = $(this).val();
16        
17        $.ajax({
18            url: gfAlternateEmail.ajax_url,
19            method: 'POST',
20            data: {
21                action: 'gf_get_latest_entry',
22                nonce: gfAlternateEmail.nonce,
23                form_id: formID, // Replace with actual form ID
24                field_id: fieldID, // Replace with actual select field ID
25                email_field_id: emailId, // Replace with actual select field ID
26                selected_value: selectedValue
27            },
28            success: function(response) {
29                if (response.success) {
30                    // Replace with the actual email field ID selector
31                    if(response.data.email === '[email protected]'){
32                        $('.blb-disclaimer').show();
33                        $('.dlg-disclaimer').hide();
34                        $('.blb-disclaimer input').removeAttr('disabled');
35                    }else{
36                        $('.blb-disclaimer').hide();
37                        $('.dlg-disclaimer').show();
38                        $('.dlg-disclaimer input').removeAttr('disabled');
39                    }
40                    $('.conditional-email-field input').val(response.data.email);
41                    $('.creatio-campaign-id input').val(response.data.campaignId);
42                } else {
43                    console.log('Error:', response.data);
44                }
45            },
46            error: function(xhr, status, error) {
47                console.log('AJAX Error:', error);
48            }
49        });
50    });
51});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.