Hi
I have a question, I have a date/time field with change event field (in formCalc). In the change event is the following script:
DATE1.rawValue = Num2Date(Date2Num(xfa.event.newText,"DD-MMM-YY")+(NUMBER-12),"DD-MMM")
DAY1.rawValue = Num2Date(Date2Num(xfa.event.newText,"DD-MMM-YY")+(NUMBER-12),"EEE")
The NUMBER is a calcalated decimal field that find difference between two date where the person pick beforehand. However this is where my question is, how can I use that value in change event?
I have search with google and through the discussion and found that change event must use
NUMBER.rawValue = xfa.event.newText
and I tryed this
num = xfa.event.newText
Number = num
but it does not work. Please advise on what to do?