Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Default value in enumeration

[SOLVED] Default value in enumeration 26 Jul 2012 10:13 #2903

  • arnar
  • arnar's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 0
Hi,

I can't get the default value to work for enumeration types.


How to reproduce:
  1. Create a field of data type enumeration.
  2. Set two values in the field and mark one of them as enumeration.
  3. In the backend form when I hit new, the field does not have a default value.

Regards
Arnar
The administrator has disabled public write access.

Re: Default value in enumeration 26 Jul 2012 10:15 #2904

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Did you checked 'Prefills form' ?

What happens if you save a null value ?
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: arnar

Re: Default value in enumeration 26 Jul 2012 11:15 #2905

  • arnar
  • arnar's Avatar
  • Offline
  • Junior Member
  • Posts: 20
  • Thank you received: 1
  • Karma: 0
Prefill did the trick...
The administrator has disabled public write access.
Time to create page: 0.058 seconds

Get Started