# Data Display Input Mode Change

The Data Display Input Mode Change operation displays the keypad to enter the values. You can enter numeric, string, or date and time values according to the selected data display object.

Note:

For information on the naming convention and script keywords, refer to the following.
Naming Conventions

##### Block

##### Text

toggleDataDisplayKeypadVisibility(DATADISPLAY);
1

1: Data Display

(Example)

1. Add a variable Var1 (DATE_AND_TIME) in the Project Explorer.

2. Add a DateTimeDisplay object (DateTimeDisplay1) on the screen and set Var1 in [Current Value].

3. Draw an Ellipse object (Ellipse1) on the screen.

4. In the Script editor, add a Touch trigger and select [Click].

5. Add a Screen Object and set as Ellipse1 into the Touch trigger.

6. Add a Data Display Input Mode Change block and select DateTimeDisplay1.

##### Block

##### Text

onClick($GraphicObject.Ellipse1, ()=>{

toggleDataDisplayKeypadVisibility($GraphicObject.DateTimeDisplay1);

});

➞ When you click the Ellipse1 or DateTimeDisplay1, a keypad appears for the DateTimeDisplay1. The limits for the minimum and maximum values are same as that of Var1 variable data type.