ListBox

Top  Previous  Next

ListBox is a Process Field and it should be placed into a ProcessRecord Element.

  <tr mo:type="ProcessRecord"> 
    <td>
      <select name="pf_CATEGORY" size="2" onchange="PMgr.fieldChanged(this)" value="{CATEGORY}"
          mo:name="CATEGORY" mo:type="ComboBox" mo:field="true" 
          mo:needsInit="true" mo:iValue="{CATEGORY}"
          mo:props="nonBlank:true, valHandler:MyValHandler, valErrorHandler:MyErrorHandler">
        <option value="1">CAT1</option>
        <option value="2">CAT2</option>
        ...
      </select>
     </td>
  </tr>

ListBox and ComboBox are similar elements except that the ListBox has size attribute with value "2". Note that ListBox Process Field cannot have multiple selections because of the nature of the ProcessRecord. A Process Field can only submit one single value otherwise the ProcessRecord structure gets corrupted.

See ListBox function class in  MoreMotion Face API.

See Validation Properties