Thanks to everyone's help.
I was also thinking about using radio buttons. But in my case I decided to use popup list. I will create another piece that using radio buttons.
Finally I paste the code here.
Is there anything to be improved?
(defun c:InsertText (/ dcl_id1 sort_list Prefix Note AddPrefix)
(setq dcl_id1 (load_dialog "Popup List Sample.dcl"))
(if (not (new_dialog "PLtest" dcl_id1))
(exit)
); end of if
(setq sort_list '("Add Prefix" "L01" "L02" "L03" "L04" "L05"))
(start_list "Prefix")
(mapcar 'add_list sort_list)
(end_list)
(if Prefix
(set_tile "Prefix" Prefix)
(set_tile "Prefix" "0")
); end of if
(if Note
(set_tile "Note" Note)
); end of if
(setq Prefix (get_tile "Prefix"))
(setq Note (strcase (get_tile "Note")))
(action_tile "Prefix" "(setq Prefix $value)")
(action_tile "Note" "(setq Note $value)")
(action_tile "accept" "(setq start_ok T) Prefix (done_dialog 1)")
(action_tile "cancel" "(setq start_ok nil)(done_dialog 0)")
(start_dialog)
(unload_dialog dcl_id1)
(cond ((= Prefix "0") ; [color=red]Does it required?[/color]
(setq NoDisplay "No") ; [color=red]Does it required?[/color]
); end of cond 00 ; [color=red]Does it required?[/color]
((= Prefix "1")
(setq AddPrefix "L01")
); end of cond 01
((= Prefix "2")
(setq AddPrefix "L02")
); end of cond 02
((= Prefix "3")
(setq AddPrefix "L03")
); end of cond 03
((= Prefix "4")
(setq AddPrefix "L04")
); end of cond 04
((= Prefix "5")
(setq AddPrefix "L05")
); end of cond 05
); end of cond
(command "_.text" (getpoint "insert text") "" "" (strcat AddPrefix "-" Note))
(princ)
); end of InsertText