- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
thank you for your help.
I have changed the current time field form calc script to a form ready javascript to show a clock with the current time:
pathToField
="xfa.form.form1.ActionsHeaderFrame.clock";var t = app.setInterval("obj=new Date();"+pathToField+".rawValue=obj.getHours()+':'+obj.getMinutes()+':'+obj.getSeconds();", 1000);
I have changed the formcalc script to suit, but the alert is still not coming up 2 minutes before the finish time.
var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:M:SS") // this is the finish time
var vSec = 2 * 60 * 1000 // time in milliseconds - which is 2 minutes
var vFinish = vEnd - vSec // take away the finish time from 2 minutes to give a new time to trigger to alert
var vcurrent = Time2Num(clock.formattedValue, "HH:M:SS") // this is the current time clock field
if (vcurrent == Num2Time(vFinish, "HH:M:SS")) then // if the current time equals the finish time - 2 minutes then show message
xfa.host.messageBox("You only have 2 minutes to finish the agenda " ,"Reminder",3,0)
else
""
endif
(also the clock stops running after 6 seconds)?
If you can provide any assistance I would be very grateful.
Thankyou very much.
![]()
Views
Replies
Total Likes