Forums

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

  1. jester48
    Member
    Posted 4 months 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 4 months 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 4 months ago #

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

  4. jester48
    Member
    Posted 4 months ago #

    code can be found here

    http://pastebin.com/VUhJVFsx

Reply

You must log in to post.

About this Topic