[TYPO3-dev] Flexform date field default -> time()

Bas van der Togt bas.vander.togt at efocus.nl
Tue Dec 7 16:13:09 CET 2010


Thank you Jigal for this workaround!
This works for me.

Op 7-12-2010 14:05, Jigal van Hemert schreef:
> Hi,
>
> On 7-12-2010 12:13, Bas van der Togt wrote:
>> I have a flexform with a date field.
>> Now i want to fill this field with a time() default value.
>> Is there a marker available for this?
>
> In flexforms the default value is limited to a static value AFAIK.
> Maybe you can solve the problem by using some kind of unlikely "magic"
> default value and use a custom form evaluation to replace the "magic"
> value with something you want. [1]
>
> Note that the checkbox before a field has a double function:
> - if you empty the checkbox the value in the 'checkbox' setting will be
> inserted in the input field
> - if you check the checkbox the default value will be inserted. For date
> (and similar) fields the current date (and/or time) will be inserted
>
> Maybe this default behaviour is enough for you.
>
> [1] http://goo.gl/jB7l5
>





More information about the TYPO3-dev mailing list