WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Add a complusory field in the submission form (4 posts)

  1. Gwentrac
    Member
    Posted 1 year ago #

    Hello,

    I would like to add a complusory field in the submission page.
    I want that the state is complusory?

    Does anyone can help me, please? Which php file manage it?

    Best regards,

    Gwen

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    you can try to add event attribute then hook into the em_event_get_post and em_event_validate filters, which passes $result and $EM_Event.

    e.g. http://wordpress.org/support/topic/plugin-events-manager-how-to-make-an-event-attribute-required?replies=7

  3. Gwentrac
    Member
    Posted 1 year ago #

    Hello,

    Thank for your help.
    I will try that. Before your answer I changed directly some data in file classes/em-location.php to pass the location_region and location_state compulsory.

    Best regards

    Gwen

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    You should try to use our hooks and filters. E.g. in your case you'd want to check the em_location_validate filter

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic