Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • arnar
  • arnar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
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

Please Log in or Create an account to join the conversation.

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

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

What happens if you save a null value ?
Coding is now a piece of cake
The following user(s) said Thank You: arnar

Please Log in or Create an account to join the conversation.

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

  • arnar
  • arnar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
Prefill did the trick...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.084 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started