How to make any one checkbox satisfy a series of required custom fields

Home Forums Calendar Products Community Events How to make any one checkbox satisfy a series of required custom fields

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1021825
    Kevin
    Participant

    okay so here’s what i’m trying to solve next. I have created a series of custom fields called GENRES. here is the screenshot.

    How can I make the entire block a single required field so that a user can select ANY ONE (or multiple) item and satisfy the required field.

    The code in my functions.php here shows ‘_ecp_custom’,. Originally it said ‘_ecp_custom_2’, but all that did was make the 2nd custom field row (INTERNATIONAL BALLROOM) the required field, so i removed the _2 in hopes that would resolve the issue. it hasn’t really. now when I select any one of the boxes, for example one on the bottom row, the user receives and error messages saying that field is required.

    hope you can help here. Thanks again.

    #1021995
    Cliff
    Member

    Hi Kevin.

    I see you’re trying to follow along with this article: https://theeventscalendar.com/knowledgebase/required-fields-for-events-submission-form/

    I definitely want to support you as much as I can. Unfortunately, we would have to charge a lot more for our plugin if it included a year’s worth of customizations/modifications in the price. As we outline in our Scope of Support, support includes assistance with bug fixes and guidance on how to perform modifications. However, it is up to you to actually make the modifications yourself.

    Additionally, since I cannot see the “add new event” Community Events form, I can’t give the page source a quick look to see if there’s anything I can hint toward.

    It may be helpful, though, if I draw your attention to that help article’s mentions of “square bracketed” fields — which is any field that permits more than one item (i.e. an array).

    So maybe all you need to do is change `_ecp_custom` to `_ecp_custom[]` and it’ll work as desired…

    I hope that makes sense. I am very glad to further assist you to the extent outlined in our support agreement.

    Please let me know if you have any questions.

    #1075396
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to make any one checkbox satisfy a series of required custom fields’ is closed to new replies.