If you don't have yet EDFP library you can buy it from codecanyon or you can try FREE version
Code Generator
Options
Product:  
Find field    from Database table: 
where:        =
Select display type:  
Editable
Filters:  
not empty
is unique
is email
is url
is phone
is alpha
is numeric
is alpanumeric
is date
Code box