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

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started