(form "10500" (size 57 22)
  (heading "True blast boundary")
   
  (field "new_layer" 
      (position 12 8) 
      (display_length 15) 
      (input allowed)
      (null disallowed) 
      (max_length "APP_MAX_LAYER_NAME_LENGTH")
      (translate lower)
      )
  (field "string_number" 
      (position 13 10)       
      (display_length 15) 
      (input allowed)
      (low_bound 1)
      (high_bound 32000)
      (null disallowed) 
      (max_length 5)
      (format integer_4)
      )
  (field "pattern_identifier"           
      (position 14 10)       
      (display_length 15) 
      (input allowed)
      (null disallowed) 
      (max_length 32) 
      (value_in non_exclusive)         
      )
  (field "trisolations" 
     (position 20 12)
     (display_length  1.5) 
     (input allowed)
     (value_in "Y" "N")
     (default "N")     
     (null allowed)
     (max_length 1)
     )
  (field "collar_elevation"
    (position 12 10)
    (display_length 12.5)
    (input allowed)
    (null disallowed)
    (max_length 14)
    (auto_next off)
    (value_in "Fixed" "DTM layer" "DTM file")
    (default "Fixed")
    )
  
  (field "fixed_elevation"
    (position 12 11)
    (display_length 20.5)
    (max_length 16)
    (dependency(value "collar_elevation") == "Fixed")
    (format real_8)
    (input allowed)
    (null disallowed)
    )
  
  (field "layer_name"
    (position 12 11)
    (display_length 16)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_elevation") == "DTM layer")
    (auto_next off)
    (input allowed)
    (null disallowed)
    )

  
  (field "file_location"
    (position 12 11)
    (display_length 18.5)
    (max_length "FIO_MAX_LOCATION_LENGTH")
    (dependency(value "collar_elevation") == "DTM file")
    (file(link "file_id")(extension "*.dtm"))
    (input allowed)
    (null disallowed)
    )
  
  (field "file_id"
    (position 12 12)
    (display_length 18.5)
    (max_length 16)
    (dependency(value "collar_elevation") == "DTM file")
    (input allowed)
    (null disallowed)
    )
      
  (field "visible"
    (position 12 13)
    (display_length 3)
    (dependency(value "collar_elevation") == "DTM file")
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (field "overwrite_cone_angle"
    (position 12 13)
    (display_length 1.3)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (field "cone_angle" 
    (position 15  3)    
    (display_length 15)
    (dependency(value "overwrite_cone_angle") == "Yes")
    (input allowed)
    (low_bound 0.000000)
    (high_bound 90.000000)    
    (null disallowed) 
    (max_length 16)
    (format real_8)
    )

  (field "arc_distance" 
    (position 15  3)
    (display_length 15)    
    (input allowed)
    (low_bound 1.0)
    (default "1.0")
    (null disallowed)     
    (max_length 8)
    (format real_8)
    )
    
  (field "dtm_obj_id"
    (position 14  5)
    (display_length 6)
    (low_bound 1)
    (high_bound 32000)
    (input allowed)
    (format real_4)
    (null disallowed)
    (max_length 6))
   
  (field "dtm_trisol_id"
    (position 14  5)
    (display_length 6)
    (low_bound 1)
    (high_bound 32000)
    (input allowed)
    (format real_4)
    (null disallowed) 
    (max_length 6))
    
  (field "cone_obj_id" 
    (position 13 10)       
    (display_length 5) 
    (input allowed)
    (low_bound 1)
    (high_bound 32000)
    (null disallowed) 
    (max_length 5)
    (default "1")
    (format integer_4))
    
  (field "cone_obj_name" 
    (position 13 10)       
    (display_length 5) 
    (input allowed)    
    (null allowed) 
    (max_length 32))
 
  (scroll_block (position  2  11) (size 20  5)
    (extra  0  1)
    (scroll_size 20 25)
    (repeat (grow  0  1) (instances  1 (min  1) (max 25)))
   (main
     (field "rock_name" (position 1  0) (display_length 15) (input disallowed) (max_length 20))
     (field "coneAngle" (position 12  0) (display_length 10) (input disallowed) (max_length 16))))

  (default_buttons)
)
