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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started