Timeline for How to conditionally show fields in module xml?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 2, 2019 at 9:11 | history | edited | Lodder | CC BY-SA 4.0 |
added 2 characters in body
|
Mar 26, 2019 at 7:53 | comment | added | Lodder | Not sure as I've never used FOF. You'd have to ask the developer | |
Mar 26, 2019 at 1:02 | comment | added | mickmackusa |
Unless I am mistaken, this excellent feature is not functional on FOF xml files (e.g. form.form.xml ) pastebin.com/8Tzg5sx7 This technique should be available according to the bottom of docs.joomla.org/Form_field#Showon
|
|
Jun 9, 2018 at 18:46 | comment | added | Eoin |
@RahulKaushik for the purposes of translation it is sometimes preferable to use values instead of words. For example your fieldvalue maybe in a language I do not understand but if you keep values as 0, 1, 2 that becomes less relevant, the only thing that needs to change is the label and description which can be language strings. Alternately, if you wish to use values, you should use language strings as the values so they can be translated. If you can imagine I am doing an output of if ($params['field'] == "unblikenstageden" {do something} that's a long word that I am not familiar spelling
|
|
Mar 7, 2018 at 8:46 | comment | added | Lodder | @Rahul Kaushik I dont believe it needs to be numeric | |
Mar 7, 2018 at 5:49 | comment | added | Rahul Kaushik | is it compulsory to have value in numeric? as i am trying showon="fieldname:fieldvalue" and it is not working where fieldvalue is not numeric | |
Feb 22, 2018 at 20:11 | comment | added | Lodder | @Ejaz - You're going to have to create a custom form field for that | |
Feb 22, 2018 at 20:10 | comment | added | Ejaz |
If I want to show/hide fields based module selected language it doesn't seem to work showon="language:en-CA" . Any solution?
|
|
Oct 28, 2015 at 9:23 | vote | accept | public9nf | ||
Oct 22, 2015 at 16:00 | history | edited | Farahmand | CC BY-SA 3.0 |
shownon -> showon
|
Oct 22, 2015 at 13:20 | history | answered | Lodder | CC BY-SA 3.0 |