elle
Member
Hi there,
I have an form with a repeated group.
In this repeated group I have a date-field (cal-picker). What I wanna to have is, that the date-picker only allows to pick up dates between the date, who's defined in two date-fields in the unrepeated group.
date elements in the unrepeated group are:
0_gpa_abrechnung___1_von and
0_gpa_abrechnung___1_bis
the date element in the repeated group is:
0_gpa_abrechnung_19_repeat___2_datum
In the "Allow date function" I've added the following code, wich is not working:
Cant you help me please to get it work.
Many thanks
Elle
I have an form with a repeated group.
In this repeated group I have a date-field (cal-picker). What I wanna to have is, that the date-picker only allows to pick up dates between the date, who's defined in two date-fields in the unrepeated group.
date elements in the unrepeated group are:
0_gpa_abrechnung___1_von and
0_gpa_abrechnung___1_bis
the date element in the repeated group is:
0_gpa_abrechnung_19_repeat___2_datum
In the "Allow date function" I've added the following code, wich is not working:
Code:
var start= form_14.formElements.get('0_gpa_abrechnung___1_von').getValue();
var end = form_14.formElements.get('0_gpa_abrechnung___1_bis').getValue();
var diff = start.compare(end);
var result = diff > 0 ? true : false;
Cant you help me please to get it work.
Many thanks
Elle