Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
Questions about Payment Form extension

Conditional fields calculations

  • Liam Hanks
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 hours 21 minutes ago #179146 by Liam Hanks
Conditional fields calculations was created by Liam Hanks
Hi,
I'm having some issues with conditional fields. I have several fields that are required fields, however if I change the "parent" field to an option that hides those required fields, I get a validation error asking me to complete those fields (if they are empty). Additionally, the total fee calculation is not correct if I change my parent field to a different option after selecting a child field option that contains a fee.

I should be able to correct all of this with some custom javascript (I've already started working on it), but it seems to me that this should be the default functionality: that all chlid fields are removed from validation and from the fee calculation if their display condition is no longer met. 

Thanks

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

More
7 hours 19 minutes ago #179147 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Conditional fields calculations
Hmm

Is it server validation error or it is client validation error? Could you please send me screenshot of the error so that I can understand it better ?

You are right, this should be default behavior

Tuan

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

  • Liam Hanks
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 hours 14 minutes ago #179148 by Liam Hanks
Replied by Liam Hanks on topic Conditional fields calculations
Hi Tuan,
it looks like a server-side validation error, as it comes up in a red banner at the top of the form after clicking the button to go to the confirmation page. I've attached a screenshot. 

 

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

More
7 hours 12 minutes ago #179149 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Conditional fields calculations
Yes. It is server validation error. However, I just tested on my local installation and did not see the error

Could be because something with your setup. Maybe because there are space characters before/after each option in the parent field ?

It is late here now, so I could not check it right away. But if you submit a support ticket, I will be happy to check it on tomorrow morning

I will need to have super user account of your site and link to the form, how to see the error myself so that we can check it

Regards,

Tuan

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

  • Liam Hanks
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 hours 10 minutes ago #179150 by Liam Hanks
Replied by Liam Hanks on topic Conditional fields calculations
Sounds good. I'll get your access set up and submit a ticket in the morning, as it's the end of the day here too.

Thanks for the quick reply!

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

More
7 hours 6 minutes ago #179151 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Conditional fields calculations
OK Liam. Will check and reply you when I receive your ticket

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc