i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
also want to how to stop user to give input in Date/Time field
currently im putting a Date field but it is accepting user input.
hoping for quick response
Thanks in advance!
You can place the below code in the initialize event of the field to display the current date and time.
Set the language to FormCalc.
You can play around the formats to get the desired format of date and time.
if($.rawValue eq null or $.rawValue eq "") then
$.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
You can not restrict the input area in Date time field instead you can validate the input while existing the field.
(OR) set the field to either readOnly or protected mode.
In your Save/ Submit button click event, place the following code to populate the date and time..
Use FormCalc as the language..
DateTimeField1.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
You can use rawValue property of the field to assign value at any time.
Europe, Middle East and Africa