Calendar enableTodayButton

hello ,

I have a problem when config a form with calendar by xml and call enableTodayButton command appears as follows:

Hi,

Can you please provide the demo link or a full code that is necessary to reconstruct the issue locally.

hi, thks for reply.

the demo is attached.
form_calendar_enableTodayButton.zip (6.24 KB)

You are using a custom locale for the calendar. To fix the issue, just add the missed labels into the custom locale

dhtmlXCalendarObject.prototype.langData["pt"] = { dateformat : '%Y.%m.%d', monthesFNames : ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"], monthesSNames : ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], daysFNames : ["Domingo", "Segunda-Feira", "Terça-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "Sabado"], daysSNames : ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"], weekstart : 1, weekname : "S", today: "Today", clear: "Clear" };

In your “pt” language definition for the calendar not all the fields are defined.
Please, pay attention to the “today” attribute
docs.dhtmlx.com/calendar__locali … endar.html

Hello, thank you so much.

was my fault in not notice that detail.

regards