Latest News

the latest news from our team

Add the Time and Date to a Form

You can add the time and date to a form in just a few minutes. The steps are in three parts:

  1. Create a variable.
  2. Set the value.
  3. Place it on your form with a rule.

Create a variable

  1. Make a backup copy of your project.
  2. Open the project in the eFORMz Composer.
  3. Create a variable by right clicking the form where you want to add the time and date > Add Variable > By position.
  4. In the Variable window, type a name and click OK.TimeAndDate1

Set the value

This example sets a variable to the time and date in medium-length formats. The time and date values are separated with a constant.

  1. Right click the variable > Add Function > Set value.
  2. In the Set Value window, click Variable and select Curent Time (Medium). Time and date values are available in the following formats:
    Format Time Date
    Short 11:34 AM 3/25/16
    Medium 11:34:26 AM Mar 25, 2016
    Long 11:34:26 AM PST March 25, 2016
  3. Click OK.
  4. Right click the variable > Concatenate.
  5. Click Constant, and add spaces or text to separate the time value from the date value. This example uses space-hyphen-space, ” – “. Click OK.
  6. Right click the variable > Concatenate.
  7. Click Variable and select Current Date (Medium). Click OK.TimeAndDate2

The variable now has a value that includes the current time and date, like this:

11:34:23 AM - Mar 25, 2016

Place the variable on the form

  1. Right click the form > Add Rule > Place Text.
  2. Name the rule and select the variable you created. A good practice is to use the variable name in the rule name to make it easier to find. Click OK.TimeAndDate3
  3. Specify the text color, orientation, and font properties. Specify the location to place the variable on the form in the Horizontal position and Vertical position fields. The values are in decipoints. An inch has 720 decipoints. The origin (0,0) is the top left.
  4. Click OK and find the value. You can drag the value to position precisely on the form.

 

Leave a Reply

Your email address will not be published. Required fields are marked *