Page 1 of 1

showon in payment method options

Posted: 09 Dec 2023, 14:23
by b2z
Hi,

I am using "showon" attribute in XML of payment method options, but it doesn't work. Would be nice to have as it's a standard Joomla thing.

Version 4.0.10

Thank you!

Kind regards,
Dmitrijs

Re: showon in payment method options

Posted: 09 Dec 2023, 15:59
by Jan
Hi, do you really need the "showon" feature? The problem is this is fully managed by Joomla and if Joomla core developers didn't count with dynamically loaded forms, it is hard to fix it as they usually ignore features which extensions use.

I will take a look at it but really no idea if I can do something with this core feature :-(

Jan

Re: showon in payment method options

Posted: 09 Dec 2023, 18:43
by b2z
Well I have some options that should hide if other option is set to Yes. Not a big deal at the moment.

Kind regards,
Dmitrijs

Re: showon in payment method options

Posted: 09 Dec 2023, 23:59
by Jan
Hi, as expected, seems like core does not count with dynamic loading of parameters. So the instance of "showon" class needs to be newly initialized in Javascript. So the "showon" will work in next release.

Image

Jan

Re: showon in payment method options

Posted: 10 Dec 2023, 22:26
by b2z
Thank you!