Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upaddOption
jdubs edited this page Oct 23, 2016
·
1 revision
Overview
This function appends a new option to the end of a SELECT list.
Signature
addOption(text[,][,])
Parameters
( text ) The display text associated with the option.
( value ) Optional. The value associated with the option. If omitted, value will be the same as text.
( selected ) Optional. A boolean representing whether the new item becomes the currently selected item in the SELECT list.
Example
spec['SelectList'].addOption('New Item', '123456', true);
Pages 173
- Home
- $451.Four51User
- $451.OrderDetails
- Add
- addOption
- addOptions
- autoTab
- Bold
- Break
- Calendar
- CharacterCount
- CharReplacement
- CheckBox
- clearText
- Code39
- Code39FullASCII
- Compare
- Compiled Library
- counter
- custom
- date
- DefineBackgroundColor
- DefineBorder
- DefinedColor
- DefinedDropDown
- DefineParagraphStyle
- dimlabel
- Divide
- EAN13
- Equal
- EvenBar
- FormatDate
- FormatNumber
- FormatSpecValueFromToolbar
- FormatString
- Four51 Actions
- Four51 Document Actions
- Four51 Objects
- Four51.Actions.BarcodeSymbology
- Four51.Actions.CmykColor
- Four51.Actions.ColorTypes
- Four51.Actions.DefinedColor
- Four51.Actions.Four51ActionsException
- Four51.Actions.N
- Four51.Actions.RgbColor
- Four51.Actions.Variable
- Four51.BarcodeSymbology
- Four51.CmykColor
- Four51.ColorTypes
- Four51.Four51ActionsException
- Four51.IDAutomationMethods
- Four51.RgbColor
- get (id)
- getOptionIndex
- GetPositionIndex
- getSelectedOptionIndex
- Getting Started
- GreaterThan
- hide
- hideAllOptions
- hideOption
- hideOptionAt
- hideOptionRange
- hideOptionRangeAt
- hideOptions
- IDAutomation.Codabar
- IDAutomation.Code11
- IDAutomation.Code128
- IDAutomation.Code39
- IDAutomation.Code93
- IDAutomation.EAN13
- IDAutomation.EAN8
- IDAutomation.IntelligentMail
- IDAutomation.Interleaved2of5
- IDAutomation.MSIPlessey
- IDAutomation.PostNet
- IDAutomation.RM4SCC
- IDAutomation.UPCA
- IDAutomation.UPCE
- If
- Image Selector
- imgSrc
- InsertImage
- insertOption
- InsertText
- Italic
- LastPositionIndex
- LessThan
- LowerCase
- mask
- maximum
- minimum
- MiniToolbar
- MultiAdd
- MultiDivide
- MultiLineAppend
- MultiMultiply
- Multiply
- MultiSubtract
- number
- OddBar
- PadEnd
- PadStart
- PadStartTrim
- ParseArray
- phone
- PostNet
- Prefix
- range
- regex
- removeAllOptions
- removeOption
- removeOptionAt
- removeOptionRange
- removeOptionRangeAt
- removeOptions
- ReplaceText
- required
- requiredIfIndex
- requiredIfValue
- ResizePage
- ResizePageByPercentage
- ResizePageHeight
- ResizePageWidth
- Sample Project
- ScaleImageToFill
- Select
- SelectCaseMatches
- selectedText
- selectedValue
- SelectImage
- selectOption
- setPopup
- setText
- SharedAreaTemplate
- SharedImage
- SharedResource
- SharedTemplate
- SharedText
- show
- showAllOptions
- showIf
- showOption
- showOptionAt
- showOptionRange
- showOptionRangeAt
- showOptions
- Source
- Spec Form Api
- Spec Form API Methods
- Spec Form Directives
- Spec Form Validators
- Spec Form Widgets
- Subscript
- SubString
- Subtract
- Suffix
- Superscript
- Time
- TitleCase
- toggle
- trigger
- Trim
- TrimEnd
- TrimStart
- Underline
- UPCVersionA
- UpperCase
- url
- Variable
- Wizard
- zipfour
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.