Date element doesn't take default date in repeat group

sales2010

Well-Known Member
Hello,

I need to display the current date every time a group is repeated in a form. the problem is that the date element doesn't take the today date and hour, instead it will display the latest date recorded in form.

This happen only if i repeat the group elements, it work fine for the first instance of group.

Clipboard01.png

I use the latest Github version, Joomla 3, Intranet.

Thank you
 
Thank you, Rob,

About this javascript: i guess i should create a xy.js file in components/com_fabrik/js?
Also, the date element have this input id :
join___1620___aplicatii_status_solicitari_aplicatii___date_time_0_cal
the second "date" have the id:

join___1620___aplicatii_status_solicitari_aplicatii___date_time_1_cal

What should i write instead of :

var el = form.formElements['join___131___tablename___elementname_' + repeatMax];
 
i guess i should create a xy.js file in components/com_fabrik/js?
yes, correct.

What should i write instead of .......


This should work:
Code:
var el = form.formElements['join___1620___aplicatii_status_solicitari_aplicatii___date_time_' + repeatMax];
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top