WordPress.org

Forums

[Events Manager] Make Custom Field Required (5 posts)

  1. jester48
    Member
    Posted 3 years ago #

    I have used the plugin home page tutorial to add a custom input to the events page; how can i make my custom field required

    i have tried adding it to the var $required_fields which resulted in an error;
    Fatal error: Cannot access empty property in D:\servers\site\website\wp-content\plugins\events-manager\classes\em-event.php on line 593

    i have tried updating the required field's values when creating/saving my custom field but nothing happens

    Any other suggestions?

  2. agelonwl
    Member
    Posted 3 years ago #

    Hi,

    Can you paste some code that you have? in this way we can analyze and comment on what seems to be the problem.

  3. jester48
    Member
    Posted 3 years ago #

    creating the input
    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. jester48
    Member
    Posted 3 years ago #

    code can be found here

    http://pastebin.com/VUhJVFsx

  5. jalbaiges
    Member
    Posted 3 years ago #

    Hello Jester48,

    Did you finally solved that issue? I have the same situation with a couple of event attributes.

    Agelonwl, any thoughts on this?

    Thanks in advance,

    Jaume

Topic Closed

This topic has been closed to new replies.

About this Topic