Custom Fields
Re-Envisioned
Support General Select Advance triggers .on('change') event twice Reply To: Select Advance triggers .on('change') event twice

#13304

pluginoven
Participant

Perfect, thank you.
Jut for the record, the event listener was cached as follows:

let select_cache = null
$(document).on('change', '#my_field_id', function(event) {
    if (!select_cache) {
        setTimeout(() => {
            //do your thing
            console.log('phones ringing, dude.');
            //clear the cache
            select_cache = null
        }, 100)
    }
    select_cache = event
}

Issue can be marked as resolved.