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

TOPIC:

[SOLVED] Disable a combobox 01 Jul 2012 08:29 #2723

  • tr4ding
  • tr4ding's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 42
  • Thank you received: 0
HI Everybody!!!

Another suggestion for me :)

I'd like, in a form, to define a combobox not editable which shows only the current id value passed by a filter_id from a previous form.....

How can I do that?

Should I define something in the JDOM select.php?

I appreciate your interest.......kind regards.

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

Last edit: by admin.

[SOLVED] Disable a combobox 01 Jul 2012 10:37 #2724

After download your component edit file where you placed "select" is and add "disabled" to this select.
73,
Miro

Cook saves your time and make your life easier.

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

[SOLVED] Disable a combobox 02 Jul 2012 10:21 #2729

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
'selector' JDom parameter allows you to inject whatever tag values in your input.
JDom::_('html.form.input.select', array(
	...
	'selectors' => array(
		'disabled' => 'disabled'
		...
	)
));


That's all !!
(not tested, but should work)

ps : see also : www.j-cook.pro/forum/9-coding-inside-you...efrom-is-filled#2727
Coding is now a piece of cake

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

[SOLVED] Disable a combobox 02 Jul 2012 18:41 #2736

  • tr4ding
  • tr4ding's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 42
  • Thank you received: 0

admin wrote: 'selector' JDom parameter allows you to inject whatever tag values in your input.

JDom::_('html.form.input.select', array(
	...
	'selectors' => array(
		'disabled' => 'disabled'
		...
	)
));


That's all !!
(not tested, but should work)

ps : see also : www.j-cook.pro/forum/9-coding-inside-you...efrom-is-filled#2727


It works!!! But when I click on save button on that forms, it doesn't store in the db the value proposed in that combobox non editable, indeed it saves a "zero" id reference!
Any clues?

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

[SOLVED] Disable a combobox 04 Jul 2012 11:28 #2756

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
use 'readonly' instead of 'disabled'

Sorry for mistake.
Coding is now a piece of cake

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

  • Page:
  • 1
Time to create page: 0.093 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