• Resolved miguelperez10

    (@miguelperez10)


    Hi,

    I need to create a form and the user can upload a photo when creating an event.

    I create the field “file” in the backend “form fields” but it gives me an error with the database.

    How can I show the “file” field and show the uploaded image?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    If you get an error during the creation of the field, then you need to check your database first.
    But I assume you have an error while using the field. How are you using it?

    Thread Starter miguelperez10

    (@miguelperez10)

    I have an error creating the field and using it.
    I created the file field with the name “image” so in the code I put:

    <div class = “input”>
    <label for = “image”> <? php _e (‘Image’, ‘events-made-easy-frontend-submit’); ?> </ label> <br />
    <? php EMEFS :: field (‘image’); ?>
    <? php EMEFS :: error (‘image’); ?>
    </ div>

    In the database wp_eme_formfields the field appears, but when sending the form, an error appears inserting in the database.

    Plugin Author Franky

    (@liedekef)

    That is code for events-made-easy-frontend-submit, not events-made-easy.
    The frontend submit form does NOT use the custom formfields from EME itself, that’s the reason. I can’t image why you would need to upload a file when defining a new event. But if you want to upload stuff via the frontend plugin, use the option “Use wysiwyg?”

    Thread Starter miguelperez10

    (@miguelperez10)

    I want users to be able to put a photo to the event and to appear when it has been created. I will try with the wysiwyg

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘File in fields’ is closed to new replies.