Community Submission Form Organizer Fields Template Override

Home Forums Calendar Products Community Events Community Submission Form Organizer Fields Template Override

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1014577
    jberg1
    Participant

    Hello, I’m having a couple issues with the Community Add On submission form. Specifically the Organizer Fields. One issue, led to another, so let me explain.

    The first thing I am trying to do is set the required fields for the Submission Form. Following this technique
    https://theeventscalendar.com/knowledgebase/required-fields-for-events-submission-form/
    I was able to get most of the fields required that I needed. Where I ran in to trouble was dealing with the Organizer Fields. It mentions in that post that I need to override the template to add the note “required” to the “square bracketed” fields. However when I do try to override the community/modules/organizer-fields.php file it doesn’t work.

    So digging further I even tried to edit the plugin file community/modules/organizer-fields.php (a big no no), just to verify if it could be a theme issue and found it is not utilizing that file at all in the form. Further research I found this post that it is a bug in 3.12, and it is using a different file for that part of the form.
    https://theeventscalendar.com/support/forums/topic/add-required-label-to-organizer-fields/#dl_post-999699
    Basically it is using the-events-calendar/src/admin-views/new-organizer-meta-section.php and not the template file anticipated. In fact this creates a problem with the required fields technique because the name of the Organizer Field is different. It is expecting it to be “organizer[‘Email’]”, but it is actually “organizer[‘Email’][]”. This also brings up issues that when the Required field error message comes up after submitting it doesn’t save the partially entered Organizer’s info that had already been entered (Name/Email/etc.). Those fields just go blank again.

    So my questions are (finally):
    1. Can I override the admin-view file without editing the plugin directly or is there a way I can revert just the Organizer fields back to the earlier version 3.11 before this bug was introduced so I can utilize the normal template override procedure? Can I disable the ability to add multiple Organizers for the Community Submission Form?

    2. Can you tell me, using the required fields technique mentioned above, how I might edit that to work with the current set up? Basically requiring both the Organizer Name and Organizer Email. Or is there a better way to make those fields required?

    Thanks for your help.

    • This topic was modified 10 years, 6 months ago by jberg1.
    • This topic was modified 10 years, 6 months ago by Brian.
    #1014642
    jberg1
    Participant

    Sorry to add on.
    But with all this mind how would go about removing the select from saved Organizer dropdown as covered in this post?
    https://theeventscalendar.com/support/forums/topic/removing-saved-venue-organizer-from-community/#dl_post-87374

    Thanks again for any help.

    #1014697
    Brian
    Member

    Hi,

    Thanks for using our plugins I can help out here.

    For your first question. The admin-view files can only be edited by the plugin and if you want to go back to who the plugin worked before you would have to downgrade to before Multiple Organizers was added. We are working on again adding a way to override the templates, but the current organizer template is community events does not work it was an over-site on ours to leave it in place.

    For making fields required in the multi organizer setup I worked with another customer on it and here is the coding to do that for the name and email for the Organizer:

    Make organizer email required

    As for the last issue can you please create a new ticket and we can help you better on it that way. We try to keep each support ticket to one issue so we can better focus on one topic at a time. If not though I can help out after figuring out the first two issues.

    Thanks

    #1014725
    jberg1
    Participant

    Awesome! Thanks Brian,
    As always your support rocks.

    That solution worked out perfect. Sorry I didn’t find it earlier.
    I will just utilize the admin-view file to make the other alterations and re-apply, if needed, after updates.

    Thanks again.

    #1014865
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Community Submission Form Organizer Fields Template Override’ is closed to new replies.