(form "00354" (size 80 21) 
  (heading "ENTER CHANNEL SURVEY OBSERVATIONS")
  (label (position  2  3) 
     (text "Enter the channel survey observations from precise survey locations. The sample range is "))
  (label (position  2  4) 
     (text "used to define the locations of each of the samples within the channel. Do not start the range "))
  (label (position  2  5) 
     (text "with 0 (zero), as the first sample is assumed to start at the beginning of the channel"))
  (scroll_block "main" (position  2  8) (size 76 11)
     (extra  0  2)
     (scroll_size 140 200)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 200)))
    (main)
    (top
      (label (position  1  1) (text "Channel ID"))
      (label (position  12  0) (foreground (user_option "form_text_highlight"))
        (text "Define the Channel reference point"))
      (label (position  12  1) (text "Station ID"))
      (label (position  24  1) (text "H.I."))
      (label (position 36  1) (text "Y"))
      (label (position 48  1) (text "X"))
      (label (position 60  1) (text "Z"))
      (label (position 70  0) (foreground (user_option "form_text_highlight"))
        (text "Define the channel start position"))
      (label (position 70  1) (text "Bearing"))
      (label (position 80  1) (text "Dip"))
      (label (position 90  1) (text "Slope Dist"))
      (label (position 100  0) (foreground (user_option "form_text_highlight"))
        (text "Define the channel orientation and length"))
      (label (position 100 1) (text "Bearing"))
      (label (position 110 1) (text "Dip"))
      (label (position 120 1) (text "Sample range"))
    )
    (main
      (field "channel_id" (position  1  0) (display_length  10) (input allowed)
        (max_length 32) (translate upper) (null disallowed) 
        )
      (field "station_id" (position  12  0) (display_length  10) 
        (input allowed) (max_length 32) (initialise (value "station_id(-1)"))
        (translate upper) (null allowed) 
        )
      (field "hi" (position  24  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "hi(-1)"))
        (format real_8) (null disallowed)
        )
      (field "y" (position  36  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "y(-1)"))
        (format real_8) (null disallowed)
        (help (field "station_id")))
      (field "x" (position  48  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "x(-1)"))
        (format real_8) (null disallowed) 
        (help (field "station_id")))
      (field "z" (position  60  0) (display_length  10) (input allowed)
        (max_length 16) (default "0") (initialise (value "z(-1)"))
        (format real_8) (null disallowed) 
        (help (field "station_id")))
      (field "start_bearing" (position 70  0) (display_length  8) 
        (input allowed) (low_bound 0) (high_bound 360) (max_length 16)
        (initialise (value "start_bearing(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "start_dip" (position 80  0) (display_length  8) 
        (input allowed) (low_bound -90) (high_bound 90) (max_length 16)
        (initialise (value "start_dip(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "slope_dist" (position 90  0) (display_length  8) 
        (input allowed) (low_bound 0) (max_length 16)
        (initialise (value "slope_dist(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "channel_bearing" (position 100  0) (display_length  8) 
        (input allowed) (low_bound 0) (high_bound 360) (max_length 16)
        (initialise (value "channel_bearing(-1)"))
        (default "0") (format real_8) (null disallowed) 
        )
      (field "channel_dip" (position 110  0) (display_length  8) 
        (input allowed) (low_bound -90) (high_bound 90) (max_length 16)
        (initialise (value "channel_dip(-1)"))
        (default "0") (format real_8) (null disallowed)
        )
      (field "sample_range" (position 120  0) (display_length  16) 
        (input allowed) (low_bound 0) (max_length "MAX_RNG_LENGTH")
        (initialise (value "sample_range(-1)"))
        (format range) (null disallowed)
        )
    )
  )
  (default_buttons)
)
