add script name validation
add fieldType enumeration