Page 1 of 1

How to set an empty value with setField?

Posted: 2006-02-20 11:17:58
by Nik0
Hi,
i tried to clean my comments fields with the command

SetField(fieldComments, '');

but the new value was not stored in the database.

SetField(fieldComments, 'aaa'); would work, but this is not what i want to have.

What's the clue? :D

Posted: 2006-02-20 16:30:58
by antp
Hi,
There is an option "allow to clear fields" (it was added by request of users because in most of the case there is no reason for the script to clear a field)

Posted: 2006-02-20 16:53:34
by Nik0
Ah, thanks! Perfect solution as usual. :)