Skip to Content Skip to Menu

[SOLVED] Default value in SELECT field not working

  • bazik666
  • bazik666
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago - 8 years 3 weeks ago #289497 by bazik666
Hello,

how to set default value in select field. I added in PA -> fields -> field -> Show in registration + Default value: EXAMLE TEXT, but it's not shown in registration.
I would add another option in select like EXAMPLE TEXT, but i can't set attribute for the select (disabled selected).

Help :)
Regards
Last edit: 8 years 3 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48721
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289521 by krileon
Replied by krileon on topic Default value in SELECT field not working
The "Default Registration Value" parameter just sets the field to that value on registration. It does not add new option to the select if such option doesn't exist. If you're wanting to have a custom blank value label then see the below blog on how to do that.

www.joomlapolis.com/blog/kyle/18702-select-options-extended


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • bazik666
  • bazik666
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago #289541 by bazik666
Replied by bazik666 on topic Default value in SELECT field not working
I don't want to add new option. I want to get placeholder value in registration form for select field.

But, like i wrote (sorry, maybe not precisely) when i fill Default Registration Value by fe "EXAMPLE TEXT", there is blank field in registration form instead "EXAMPLE TEXT".

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48721
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289549 by krileon
Replied by krileon on topic Default value in SELECT field not working
That parameter does not add a placeholder value. It simply sets the value of the field to whatever you put there. In the case of a select fieldtype whatever value you put there has to be a value of one of the options on the field or it's not going to select anything. If you want a custom placeholder value for a select fieldtype then as suggested above see my blog post below.

www.joomlapolis.com/blog/kyle/18702-select-options-extended


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • bazik666
  • bazik666
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago #289595 by bazik666
Replied by bazik666 on topic Default value in SELECT field not working
Thanks. It works.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum