(form "20607"
    (size 70 10)
    (heading "INPUT GEOMETRIC CONSTRAINTS"
    )

    (label
        (position 2 3)
        (text "String number for path"
        )
    )
    (field "string_num"
        (position 22 3)
        (display_length 10)
        (input allowed)
        (format integer_4)
        (low_bound 1)
        (null disallowed)
        (default "1")
        )

    (label
        (position  40  4) 
        (text "Units"
        )
    )
    (field "units" 
        (position 48  4) 
        (display_length  10) 
        (input allowed)
        (value_in "angle" "percentage" "ratio"
        )
        (null allowed) 
        (max_length 10)
        )

    (label
        (position 2 4)
        (text "Maximum gradient"
        )
    )
    (field "design_grade" 
        (position 22  4) 
        (display_length 10) 
        (input allowed)
        (translate upper) 
        (format real_8) 
        (low_bound 0)
        (null disallowed) 
        (max_length 16)
        )

    (field "show_unit1" 
        (position 33 4) 
        (display_length 6)
        (foreground 
            (user_option "form_foreground")
        )
        (background
            (user_option "form_background")
        )
        (input disallowed) 
        (dependency 
            (value "units") == "angle"
        )
    )

    (label
        (position 2 5)
        (text "Minimum radius of curvature"
        )
    )
    (field "min_radius"
        (position 22 5)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0.001)
        )

    (label
        (position 2 6)
        (text "Arc distance"
        )
    )
    (field "step"
        (position 22 6)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0)
        )

    (label
        (position 2 7)
        (text "Bearing"
        )
    )
    (field "init_brg"
        (position 22 7)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0)
        (high_bound 360)
        )

  (label (position 40  5) (text  "angle"))
  (field "unit1" (position 48  5) (display_length 10) (input disallowed)
    (format real_8) (null disallowed) (max_length 16))
  (label (position 60 5) (text "degrees"))
  (label (position 40  6)(text "percentage" )) 
  (field "unit2" (position 48  6) (display_length 10) (input disallowed)
    (format real_8) (null disallowed) (max_length 16))
  (label (position 60 6) (text "%"))
  (label (position 40  7)(text "ratio")) 
  (field "unit3" (position 48  7) (display_length 10) (input disallowed)
    (format real_8) (null disallowed) (max_length 16))
  (label (position 44 7) (text "1 in"))

    (default_buttons)
)
