Hi Dave.
I changed the type of form element to integer and it works.
It is a good solution.
Thank you very much.
append ad_form_code "\{percent.$choice_id:integer,nospell \{label \"[_ assessment.Percent_Score]\"\} \{value \"$default_percent\"\} \{html \{size 5 maxlength 5\}\} \{help_text \"[_ assessment.Percent_Score_help]\"\}\}\n"
ns_log notice "choice_id $choice_id"
}