"Field default token" not compatible with date fields.
Is it possible to make this? Thanks.

Comments

OMD’s picture

I'm seeing the same incompatibility with my date fields as well.

kopeboy’s picture

Much needed as well as numeric fields... :(

schifazl’s picture

I need this too, but I think that this should be supported by the date module beforehand.

Currently the possible default values for the date field are: no value, now and relative. We should have another option (e.g. custom value) which isn't passed to strtotime for validation, or better: passed to strtotime validation after parsing the token.

EDIT: I've created an issue for the Date module (check the "referenced by" link).

maximpodorov’s picture

Maybe it's possible to implement this on Field default token's side. But date field values are so various. Could anyone provide a patch for this issue?

schifazl’s picture

I worked around this problem by using the module Prepopulate, but IMHO it isn't an ideal solution.

johnkareoke’s picture

+1

fishfree’s picture

+1