In PDF Studio when creating custom functions/actions for specific items such as form fields or buttons you will need to use JavaScript for the commands. PDF Studio supports the following JavaScript commands for each of the below items.
For additional details on how to use these functions, take a look at the tutorials and lessons on this site http://www.w3schools.com/js/js_intro.asp
Document
Methods:
addField
calculateNow
getAnnots3D
getField
getNthFieldName
getOCGs
resetForm
Properties:
calculate
numFields
numPages
URL
Fields
Methods:
buttonGetCaption
buttonImportIcon
buttonSetCaption
checkThisBox
clearItems
deleteItemAt
getArray
getItemAt
insertItemAt
isBoxChecked
setAction
setFocus
setItems
Properties:
borderColor
borderStyle
borderWidth
calcOrderIndex
charLimit
comb
commitOnSelChange
currentValueIndices
defaultValue
delay
display
doc
doNotScroll
doNotSpellCheck
editable
exportValues
fileSelect
fillColor
hidden
lineWidth
multiline
multipleSelection
name
numItems
page
password
readonly
required
strokeColor
style
submitName
textColor
type
userName
value
valueAsString
Global
Methods:
setPersistent
OCG
Methods:
getIntent
setAction
setIntent
Properties:
initState
locked
name
state
Utilities
Methods:
printd
printf
printx