(form "01320" 
    (size 45 17)
    (heading "EXTRACT SECTIONS FROM DTMs"
    )
    (label 
        (position 1  3) 
        (text "Number of DTMs to section"
        )
    )
    (field "numdtms" 
        (position 22  3) 
        (display_length  1)
        (input allowed)
        (low_bound 1) 
        (high_bound 2)
        (default "1")
        (value_in "1" "2"
        )
        (format integer_4) 
        (null disallowed) 
        (max_length 1)
        )
    (label 
        (position  1  5) 
        (text "First DTM"
        )
    )
    (field "dtm_layer1" 
        (position 15  5) 
        (display_length 20)
        (input allowed)
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
    )
    (label
        (position 1  6)
        (text "Second DTM"
        )
    )
    (field "dtm_layer2" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (dependency (value "numdtms") == "2")
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
    )
    (label 
        (position  1  8) 
        (foreground (user_option "form_text_highlight"))
        (text "Define the Section method"
        )
    )
    (label 
        (position 1 9) 
        (text "Section by"
        )
    )
    (field "sectype" 
        (position 13 9) 
        (display_length  10) 
        (input allowed)
        (value_in "Interval" "Range"
        )
        (default "Interval")
        (null disallowed) 
        (max_length 10)
        )
    (label 
        (position 1 10) 
        (text "Section Values"
        )
    )
    (field "secint" 
        (position 13 10) 
        (display_length 10) 
        (input allowed)
        (null disallowed) 
        (max_length 32)
        (format range)
        )
    (label 
        (position  1 12) 
        (text "Use a boundary string"
        )
    )
    (field "usebdy" 
        (position 20 12) 
        (display_length  1) 
        (input allowed)
        (value_in "Y" "N")
        (default "N")
        (translate upper)
        (null allowed)
        (max_length 1)
        )
    (label 
        (position 1 14) 
        (foreground (user_option "form_text_highlight"))
        (text "Define output layer"
        )
    )
    (field "new_sec_layer" 
        (position 20 14) 
        (display_length 20) 
        (input allowed)
        (null disallowed) 
        (max_length 32)
        (translate lower)
        )
    (field "object1_num" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
        )
    (field "trisolation1_num" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
        )
    (field "object2_num" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (dependency (value "numdtms") == "2")
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
        )
    (field "trisolation2_num" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (dependency (value "numdtms") == "2")
        (null disallowed)
        (max_length 32)
        (help (field "numdtms"))
        )
    (default_buttons)
)
