Hi,
i did it with jquery:
$(document).ajaxComplete(function() {
$('.acf-notice p').each(function() {
var text = $(this).text();
$(this).text(text.replace('OLD ERROR MESSAGE', 'NEW ERROR MESAGE'));
});
});
For example in your jquery-js with:
$(document).ajaxComplete(function() {
$('.acf-notice p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Wert ist erforderlich = OLD MESSAGE', 'Bitte ausfüllen = NEW MESSAGE'));
});
});
i found a way:
$subfield2 = get_sub_field("produkt_kontaktformular_wahl");
$subfield1 = get_object_vars($subfield2);