Help Desk

Creating separate submission forms for different categories

  • Posts: 5 Topics: 8
    | Permalink

    Hi,

    We have a great association registry / event site but now we need to add a new event category to the site, and it should have it’s own separate submission form.

    I’ve read some previous threads on the topic and I know that I can customise the categories shown on the Community Events submission form but it is possible to create two (or 3 or 4 in the future) submission forms for different categories?

    This would allow us to make it impossible to forget selecting the right category, i.e. to improve usability?

    Posts: 6978 Topics: 2
    | Permalink

    Hi hannujaatinen,

    Thanks for reaching out!

    Wow, that is something.

    Out of the box that is not possible, but with some custom development and template override I guess it could be possible.

    One of the approaches could be the following:

    Create a template override of the submission page.

    Create a parameter check at the beginning of the file what version is loaded. The forms / page could be loaded with different parameters, like:

    http://domain.com/events/community/add?version=1

    Depending on the version load different rules / fields / categories, whatever you need.

    Does this help you get started with this?

    I can customise the categories shown on the Community Events submission form

    Out of curiosity, can you share those threads of the snippet here with me?

    Thanks and cheers,
    Andras

    Posts: 5 Topics: 8
    | Permalink

    I’ve modified the Community events submission form already (quite a lot) but how do I do this part?

    Create a parameter check at the beginning of the file what version is loaded. The forms / page could be loaded with different parameters, like:
    http://domain.com/events/community/add?version=1
    Depending on the version load different rules / fields / categories, whatever you need.

    Posts: 6978 Topics: 2
    | Permalink

    Something with this: http://php.net/manual/en/reserved.variables.get.php

    <?php
    if ( $_GET['version'] == 'signup' ) {
    do this...
    }
    elseif ( $_GET['version'] == 'registration' ) {
    do that...
    }
    else {
    do something else...
    }
    ?>

    And then the urls would need to be like:
    http://domain.com/events/community/add?version=signup
    http://domain.com/events/community/add?version=registration

    Does this help?

    A.

    Posts: 65
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    | Permalink