Field "onshow" attribute doesnt work?

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
thebasix
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Mon Sep 21, 2015 3:46 pm

Field "onshow" attribute doesnt work?

Post by thebasix » Thu Jul 21, 2016 8:43 pm

Bottom line is this. Onshow attribute doesnt work for me. I dont have any idea why. I'm using 3.4.8.


I also tried fields from this page and nothing, it doesnt work.https://docs.joomla.org/Form_field


Any ideas why it wouldnt work?

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Field "onshow" attribute doesnt work?

Post by sovainfo » Thu Jul 21, 2016 11:04 pm

Maybe because the attribute is named `showon` !
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

thebasix
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Mon Sep 21, 2015 3:46 pm

Re: Field "onshow" attribute doesnt work?

Post by thebasix » Fri Jul 22, 2016 7:12 am

No, not really. I maybe wrote "onshow" in title but Im using "showon". So that is correct. Here is example of my fields

Code: Select all

	<field name="isBusiness"
			   type="radio"
			   default="0"
			   label="COM_USERS_REGISTER_ENTITY_LABEL"
			   description=""
			   class="btn-group">
			<option value="0">Personal</option>
			<option value="1">Business</option>
		</field>

		<field
			name="name"
			type="text"
			showon="isBusiness:1"
			description="COM_USERS_REGISTER_NAME_DESC"
			filter="string"
			label="COM_USERS_REGISTER_NAME_LABEL"
			required="true"
			size="30"
		/>
But this doesnt work. At all.

User avatar
astridx
Joomla! Intern
Joomla! Intern
Posts: 91
Joined: Wed Mar 25, 2015 8:56 am
Location: Germany
Contact:

Re: Field "onshow" attribute doesnt work?

Post by astridx » Fri Jul 22, 2016 8:51 am

Do you like to use it in the frontend or in the backend?
It seems that showon is not working at all on front-end: http://joomla.stackexchange.com/questio ... t-frontend
---
https://blog.astrid-guenther.de/
---
Don't push the river ... it flows by itself ...


Locked

Return to “Joomla! 3.x Coding”