• Resolved tomasmalek

    (@tomasmalek)


    Hello,

    I am developing a website where parents register their children for a hockey camp. The current workflow is as follows:

    1. The parent selects whether they are registering 1 or 2 children.
    2. They proceed to a form to enter their personal details.
    3. They then fill out custom fields for each child.

    The Problem: Even if a parent selects only one child, the input fields for the second child remain visible. I previously used a PHP snippet to hide these fields, but after a recent update, this solution stopped working.

    Another issue with the previous snippet was related to required fields. Even when the fields for the second child were hidden, the form would not submit because the “required” validation was still active for those hidden fields.

    My Question: What is the best way to dynamically hide/show specific form fields based on the number of participants selected? Ideally, I am looking for a solution where hidden fields do not trigger “required” validation errors.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support stefanpetrov

    (@stefanpetrov)

    Hello,

    Thank you for reaching out to us. Unfortunately, there is currently no option to make custom fields conditional. We’ve noticed that some users would like this feature, so we plan to implement it in future versions of Amelia.

    At the moment, custom fields can be used to collect information for additional persons accompanying the customer, but the information is only visible in the appointment details.

    Feel free to contact our support team via your store account, as they may be able to provide a workaround after consulting with our developers.
    Premium products are not supported in these forums.

    Kind regards,
    Stefan.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.