Tag 010 - Text with Optional Buttons

The Text with Optional Buttons Message is used to display virtual buttons and / or fixed text onscreen. The screen may have button(s) on top and / or bottom plus labels (lines of text) in the middle.

If enabled, buttons will be colored as follows: any buttons displayed on the left half of the screen will be red and any buttons on the right half will be green.

A virtual button will only be displayed if data is entered in the descriptor field (ButtonNDesc) for the button. The maximum length of each button descriptor is 6 on the MX915 and 11 on the MX925. Note that pressing the Enter key is not required after pressing a virtual button.

The maximum number of labels is seven. The maximum length of each label is 45 for the MX915 and 60 for the MX925. Field separators must be sent for button and label fields as shown below, even if some of these fields are null.

The Text with Optional Buttons Response returns the button pressed by the customer. Fields in the Request (AllowEnter, AllowCancel) control whether the (hard) Enter and Cancel keys can be used.

Text with Optional Buttons Field 5001 Format

Request

Field 5001 SubfieldLengthDescription
TTT3Tag (always = 010)
LLL3Length of the following data
AllowEnter1Allow Enter hard key (0=Not allow, 1=Allow)
AllowCancel1Allow Cancel hard key (0=Not allow, 1=Allow)
Beeper1Sound tone (0=No, 1=Yes)
ButtonADesc0-8Descriptor for first button position (from left) on top (A)
FS1Field separator (Hex 1C)
ButtonBDesc0-8Descriptor for second button position on top (B)
FS1Field separator (Hex 1C)
ButtonCDesc0-8Descriptor for third button position on top (C)
FS1Field separator (Hex 1C)
ButtonDDesc0-8Descriptor for fourth button position on top (D)
FS1Field separator (Hex 1C)
ButtonEDesc0-8Descriptor for first button position (from left) on bottom (E)
FS1Field separator (Hex 1C)
ButtonFDesc0-8Descriptor for second button position on bottom (F)
FS1Field separator (Hex 1C)
ButtonGDesc0-8Descriptor for third button position on bottom (G)
FS1Field separator (Hex 1C)
ButtonHDesc0-8Descriptor for fourth button position on bottom (H)
FS1Field separator (Hex 1C)
Label1Just1Label 1 Justification (1=Left justify, 2=Center, 3=Right justify)
Label1Reverse1Reverse mode (not used).
Label1Text0-45 (MX915)
0-60 (MX925)
Label 1 Text
FS1Field separator (Hex 1C)
Label2Just1Start of Label 2 fields
Label2Reverse1
Label2Text0-45 (MX915)
0-60 (MX925)
FS1
Label3Just1Start of Label 3 fields
Label3Reverse1
Label3Text0-45 (MX915)
0-60 (MX925)
FS1
Label4Just1Start of Label 4 fields
Label4Reverse1
Label4Text0-45 (MX915)
0-60 (MX925)
FS1
Label5Just1Start of Label 5 fields
Label5Reverse1
Label5Text0-45 (MX915)
0-60 (MX925)
FS1
Label6Just1Start of Label 6 fields
Label6Reverse1
Label6Text0-45 (MX915)
0-60 (MX925)
FS1
Label7Just1Start of Label 7 fields
Label7Reverse1
Label7Text0-45 (MX915)
0-60 (MX925)

Response

Field NameLengthDescription
TTT3Tag (always = 010)
LLL3Length of the following data
ActionButtonvarIf field 11 Completion Code = 000 (success), returns code for action button or key pressed:
  • 777=Enter (green) key
  • 888=Cancel (red) key
  • 1=ButtonA
  • 2=ButtonB
  • 3=ButtonC
  • 4=ButtonD
  • 5=ButtonE
  • 6=ButtonF
  • 7=ButtonG
  • 8=ButtonH

Sample Message (showing available formatting)

Request

The following request tells Simplify to display a screen showing different kinds of justification:

API Field #, ValueDescription
0001,36Transaction Type
0011,14123010060User Data. See Appendix F for the use of this field.
5001,[see value below]Non-Financial Data
  • 010=Tag
  • 211=Length of data
  • 1=Allow Enter key
  • 1=Allow Cancel key
  • 0=Beeper active
  • ButtonH=Descriptor for virtual button position H
  • 1=Line 1 left-justified
  • 0=Line 1 standard mode
  • This line is left justified =Text of line 1
  • (etc.)

5001,010211110FSFSFSFSFSFSFSButtonHFS10This line is left justifiedFS20This line is centeredFS30This line is right justifiedFS20This line is centeredFS10This line is left justifiedFS20This line is centeredFS30This line is right justified

Response

API Field #, ValueDescription
0001,36Transaction Type
0011,14123010000?V142.18.65_2.18.1User Data. See Appendix F for the use of this field.
5001,010003888Non-Financial Data
  • 010=Tag
  • 003=Length of data
  • 888=Cancel key pressed

Sample Message (Eight Buttons)

Request

The following request tells Simplify to display a screen with four virtual buttons each on the top and bottom of the screen.

API Field #, ValueDescription
0001,36Transaction Type
0011,14123010060User Data. See Appendix F for the use of this field.
5001,[see value below]Non-Financial Data
  • 010=Tag
  • 213=Length of data
  • 1=Allow Enter key
  • 1=Allow Cancel key
  • 0=Beeper not active
  • ButtonA (etc.)=Descriptor for virtual button position A (etc.)
  • 1=Line 1 left-justified
  • 0=Line 1 standard mode
  • Information Line 1 (etc.)= Text of line 1(etc.)

5001,010213110ButtonAFSButtonBFSButtonCFSButtonDFSButtonEFSButtonFFSButtonGFSButtonHFS10Information Line 1 FS10Information Line 2 FS10Information Line 3 FS10Information Line 4 FS10Information Line 5 FS10Information Line 6 FS10Information Line 7

Response

API Field #, ValueDescription
0001,36Transaction Type
0011,14123010000?V072.18.02User Data. See Appendix F for the use of this field.
5001,0100011Non-Financial Data
  • 010=Tag
  • 001=Length of data
  • 1=ButtonA pressed