It is a tool that runs the 'At the Counter' actions that are defined to it at the end of the specified period. The value of the counter element can be changed at run time. This is done by giving the value update action-value of " + " or " - ".
Counter tool icon at Toolbox
How it looks like on the Canvas
|Free Form||Responsive Form||Mobile|
Properties of the form tool;
Text Size: Sets the size of the tool.
Help Text: It is the text that is entered for comment when the mouse is placed on the tool.
Color: Edits the color of inside the tool and / or the text inside the tool.
Height / Width: Adjusts the height and width of the tool (Genişlik alanı Responsive Formlardan kaldırılmıştır).
From Left / Top: Adjusts the distance of the tool from the left and top (Bu alan Responsive Formlardan kaldırılmıştır).
Start (seconds): Enter the number of seconds to start the timer.
Display: Makes the tool not appear on the screen. If the Display area is chosen as No, it makes this tool not seem on the client screen. Otherwise, the opposite happens.
Repeat When Finished: This is the field that allows it to restart when the specified time expires. Otherwise, the counter will run once. Repeat when the finished property is No, the countdown starts one time. Repeat when the finished property is Yes, the countdown starts over and over again.
In The Counter Completion: Assign an “Action” as on counter completion handler. For more information please click here.
To adjust the starting time for countdown, enter a number as seconds. You can write “30” in the Start area.
Client view on screen
For example; When the countdown is over, the document is saved. This action runs it at the end of the countdown all time if Repeat when the finished property is chosen as Yes.
Another example; When the form is opened action with Update Value operation makes the counter starts according to the given time in the SQL Query area. (Value Area is the counter name.)
The result of this action is as below.
Client view on screen
If you wish, you can add two buttons to your form page, which is the counter, and define the actions to stop the counter and start the counter. Let's do it together;
First of all, two buttons named Start Counter and End Counter are added to the form page.
Now let's define the actions of the buttons:
When the Start Counter When Clicked - Update Value action, that field is triggered. The name of the field on our form page is Watch-1. Then the following query is written in the query field. It starts the countdown again from the number of start seconds given.
When the Counter Stop Button When clicked, that field is triggered by the Update Value action. The name of the field on our form page is Watch-1. Then the following query is written in the query field.