Create two tags. One tag will be named "Dollar Amount" and will be set as a STRING tag. The default value will be '$0'. The other tag will be named "Int Value" and will be set as an INT16 tag. The default value will be set to 0. When done creating a tag, click OK to finalize the changes.
Create a Text Field object and a Numeric Field object. Click Insert > Text Field or the Insert Text Field icon in the toolbar. Click and drag on the page to bring up the Text Field object. Click Insert > Numeric Field or the Insert Numeric Field icon in the toolbar. Click and drag on the page to bring up the Numeric Field object. Bind the tag 'Dollar Amount' to the Text Field object and the tag 'Int Value' to the Numeric Field object. Be sure to disable the on-screen keyboard for both field objects.
Create 14 Rectangles and 14 Text Objects. Click Insert > Rectangle or the Insert Rectangle icon in the toolbar. Click and drag on the page to bring up the Rectangle object. Click Insert > Text or the Insert Text icon in the toolbar. Click and drag on the page to bring up the Text object. Set them up in a way to resemble a Key Pad. The Text will be as follows: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, $, Clr, Del, and Enter. Inlay the Text above the Rectangles so the text is visble. Group each rectangle and text object pair together after set. This can be done by highlighting the text object and rectangle and using the hotkey Ctrl + G. This will group the objects together. The grouped objects will be used as the keys for the keypad. Users can also right click the highlighted objects, and select "Group" from the dropdown menu.
Select an input key, and go to the Actions tab. Set an On Press action for each key. The action will be set to Press Key. The Key will be set to the corresponding number or symbol. An example of what the 1 key will look like is shown below.
For Delete, the action will be set to 'Backspace'. For Clr, the action will be 'Set Tag Value', for 'Dollar Amount' it will reset to $0, and for Int Value it will be reset to 0. In the action for Clr, add an action to 'Press Key' that with the key being backspace. Copy and paste this command about 5 - 10 times to ensure the field is cleared if selected.
Field Object Runtime
Click Tools > Launch Simulator to launch the Canvas Simulator.
Select the Text Field Object and input '$2525'. Hit Enter, and the data will be saved to the tag 'Dollar Amount'. The data will not be retained in the Field if the user clicks off the Field before hitting enter.
Select the Numeric Field Object and try to input a '$' into the Numeric Field Object. Note how the field will not accept the '$' character due to it being a Numeric Field Object. After this, input '2525'. Hit Enter, and the data will be saved to the tag 'Int Value'.
Click Del to delete the last character in the Numeric Field Object. Hit enter, and the data will now be saved in the tag as '252'.
Click Clr to clear the tag data. The values in the field will reflect this change, and any currently selected field will be blank.