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.056 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started