Validation:All are Required fields solved

Archived from the Xataface Users forum.

chichi — Thu Jul 15, 2010 8:14 am

Hello, all fields in my xataface-app are declared as required fields right now, i want to change this to optional.
How can I handle this?

chichi


cantlep — Fri Jul 16, 2010 7:15 am

Hi,

in fields.ini for that table, you could add this:

Code: Select all
validators:required = false

or

You could change the column in the actual Database itself to Null=yes, Default=NULL and then you wouldn’t need the validators bit in fields.ini.

Rgds
Paul


chichi — Fri Jul 16, 2010 7:35 am

Hey Paul,
I changed the column in the actual Database itself to Null=yes, now its working fine.

Thanks.