(form "00312" (size 53 19)
  (heading "INTERSECT DRILL HOLES AND OBJECTS")
  (label (position  2  3) (text "Define the object number to intersect with"))
  (label (position  2  4) (text "Object"))
  (label (position  2  6) (text "Name the layer for saving the resultant hole trace segments"))
  (label (position  2  7) (text "Layer name"))
  (label (position  2  9) (text "Save intersections to database"))
  (label (position  2 14) (text "Define the log file for results"))
  (label (position  2 15) (text "REPORT_FILE_NAME"))
  (field "table_name_label"
    (position  2 10)  (display_length 12)
    (foreground (user_option "form_foreground")) (background)
    (default "Table name")
    (dependency (value "save") == "Y"))
  (field "field_name_label"
    (position  2 11)  (display_length 12)
    (foreground (user_option "form_foreground")) (background) 
    (default "Field name")
    (dependency (value "save") == "Y"))
  (field "int_code_label"
    (position  2 12)  (display_length 12)
    (foreground (user_option "form_foreground")) (background) 
    (default "Int code")
    (dependency (value "save") == "Y"))
  (field "iobj" (position 12  4) (display_length  5) (input allowed)
    (low_bound 1) (high_bound 32000)
    (format integer_4) (null disallowed) (max_length 5)
    (auto_next off)
    )
  (field "result_layer" (position 12  7) (display_length 32) (input allowed)
    (translate lower) (max_length 32)
    (auto_next off)
    )
  (field "save" (position 34  9) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null allowed) (max_length 1)
    (default "Y")
  )
  (field "geo_table" (position 14 10) (display_length 18) (input allowed)
    (dependency (value "save") == "Y")
    (null disallowed) (max_length 18)
    (auto_next off)
    (help (field "save")))
  (field "geo_field" (position 14 11) (display_length 18) (input allowed)
    (dependency (value "save") == "Y")
    (null disallowed) (max_length 18)
    (auto_next off)
    (help (field "save")))
  (field "geo_code" (position 14 12) (display_length 32) (input allowed)
    (dependency (value "save") == "Y")
    (null disallowed) (max_length 32)
    (help (field "save")))
  (field "log_loc" (position 12 15) (display_length 26) (input allowed)
    (translate lower) (null disallowed) (max_length "FIO_MAX_FILENAME_LENGTH")
    (file output (extension trim "reports|*.log")))
  (field "report_format" (position 18 13) (display_length 32)
    (input allowed) (null disallowed)
    (value_in ".not - Surpac Note File"
              ".csv - Comma Separated (Spreadsheet)"
              ".htm - Hypertext Markup Language (Web)"
              ".html - Hypertext Markup Language (Web)"
              ".rtf - Rich Text Format (Microsoft Word)"
              ".pdf - Adobe Acrobat"
              ".ps - Postscript"
              ".log - Surpac log file"))
  (default_buttons)
)
