Hi all
i have a grid (php/json datasource) and inline editing.
i need to validate the email address field but i have a problem.
if i define the field like this in my datasource.schema.model.fields :
EmailAddress: { validation: { required: true}, type: "email" },
then validation works perfectly when editing existing entry.
but adding throws an error. (i dont think 'email' is a valid 'type')
i think i'll need to define the field like this:
EmailAddress: { validation: { required: true}, type: "string" },
and validate the entry with a regex. but i cant figure out how.
i though i could add a 'format' to the above 'validation' tag but that doesnt work....
does anyone have experience with this please? i've very stuck.
thanks,
Vauneen
i have a grid (php/json datasource) and inline editing.
i need to validate the email address field but i have a problem.
if i define the field like this in my datasource.schema.model.fields :
EmailAddress: { validation: { required: true}, type: "email" },
then validation works perfectly when editing existing entry.
but adding throws an error. (i dont think 'email' is a valid 'type')
i think i'll need to define the field like this:
EmailAddress: { validation: { required: true}, type: "string" },
and validate the entry with a regex. but i cant figure out how.
i though i could add a 'format' to the above 'validation' tag but that doesnt work....
does anyone have experience with this please? i've very stuck.
thanks,
Vauneen