Insert selection from filter everything pro into gravity forms field

$select.find('option:selected').text() should get the name of the selection:

jQuery(document).ready(function($) {
    function updateGravityFormHiddenFields() {
        var $select = $('#wpc-taxonomy-work_location-3945');
        var selectedText = $select.find('option:selected').text(); // Get the selected option's text
        console.log("Selected Name:", selectedText); // Debugging line
        $('#input_3_14').val(selectedText).trigger('change'); // Ensure value update
    }

    // Initial population
    updateGravityFormHiddenFields();

    // Use .on() instead of .change()
    $(document).on('change', '#wpc-taxonomy-work_location-3945', function() {
        console.log("Change detected"); // Debugging line
        updateGravityFormHiddenFields();
    });
});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)