Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adding a Dropdown list via Code

XML

(Sample code goes here)

VB

...

See the SetFieldTypeByFieldName method page. Sample code below:

Code Block
languagevb
titleVB Sample Code - SetFieldTypeByFieldName
Dim strStates As New List(Of String)()

...


strStates.Add("AK")

...


strStates.Add("AL")

...


strStates.Add("AZ")

...


strStates.Add("CA")

...


strStates.Add("DE")

...



objQFE.SetFieldTypeByFieldName("H.State", QuikFormsEngine.FieldType.DropDownList(New List(Of String)(strStates)))


Option 2

Adding a Dropdown list via Form Rules Manager

...