I need a temporary solution, even a dirty one. I handled when option is changed with this:
(function($) {
$(document).on("change", "[data-field_name=collection_type]", function(){
$checked = $(this).find("input:checked");
console.log($checked.val());
});
})(jQuery);
I couldnt catch if data is already saved and window loaded. Any suggestion if possible?