hi,
I put a java code in a element. however does not work... the code seems to be not bad.
Can anyone help me ?
the method was really simple, I just wanted to crone a date value from A element to B element, when a element had filled in a value.
like : 2013-01-27 08:50 (start element) -> copy -> 2013-01-27 08:50 (end element).
the code was following and I had put this code in the start element. trigger was focus.
the execution result, the value of end was ' 1970-01-01 ' it is not copy...
pls anyone !
I put a java code in a element. however does not work... the code seems to be not bad.
Can anyone help me ?
the method was really simple, I just wanted to crone a date value from A element to B element, when a element had filled in a value.
like : 2013-01-27 08:50 (start element) -> copy -> 2013-01-27 08:50 (end element).
the code was following and I had put this code in the start element. trigger was focus.
Code:
var check = form1.formElements.get('tableA___enddate_raw').getValue();
var start = form1.formElements.get('tableA___startdate_raw').getValue();
if ($check == '0000-00-00 00:00:00'){ // this is a condition when enddate had been empty
form1.formElements.get('tableA___enddate_raw').update(start);
}
pls anyone !