Drop down lists are very similar, but require a few additional functions as follows :
rem this sub creates the top of a drop down object
sub startDropDown(ddname,defaultValue)
Response.Write("<<" & CRLF & "/T (" & ddname & ") " & CRLF & "/V (" & defaultValue & ") " & CRLF & "/Opt [(" & defaultValue & ")")
end sub
rem this sub adds a value to the drop down list
sub addDropDownValue(DDValue)
Response.Write("(" & DDValue & ")")
end sub
rem this sub closes the Drop down object
sub endDropDown()
Response.Write("]" & CRLF & ">>" & CRLF)
end sub
call startDropDown("ordertype","1")
call addDropDownValue("2")
call addDropDownValue("3")
call endDropDown()
In the next section we will look at the role that Javascript can play and the additional functionality that is offered in the PDF implementation of Javascript.