WordPress.org

Forums

Gravity Forms Advanced File Uploader
required field (9 posts)

  1. thomas
    Member
    Posted 1 year ago #

    Hello

    Is there a way to make the upload fields required ?
    I do not see the checkbox !

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

  2. ben.moody
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    Haven't added that option in directly as it's not as simple as checking if is empty,as some may want to check for a certain number of files.

    You can use this gravity forms action hook to add your own validation based on your specific use case:

    http://www.gravityhelp.com/documentation/page/Gform_field_validation

    Ben

  3. thomas
    Member
    Posted 1 year ago #

    Hi Ben,

    thanks, I'll take a look !

  4. Piet Bos
    Member
    Posted 1 year ago #

    Hey Ben, was looking for the same thing and have tried to implement the GF hook above. If using 1 image only where should I check on exactly?

    I used if($result["is_valid"] && intval($value) < 1) which most likely is very wrong, but it results in not being able to submit the form with an error message about that the browser doesn't support Silverlight or Flash or whatever.

    So, mission partly accomplished, but not ideal :)

    Any further tips much appreciated.

  5. tweetpressfr
    Member
    Posted 1 year ago #

    I'm looking for some way to do that too. I've tried the gvalidation hook way but it triggers bugs for validation. In fact it jams the validation process.

    We often need this feature when setting a form. Any hint would be appreciated.

  6. thomas
    Member
    Posted 11 months ago #

    Hello Ben,

    Is there now a way to make the upload fields required ??
    to check if there's at least one image, for example.

    I really need to, as the image is the only field in the form... :/

    thanks !

  7. juri003
    Member
    Posted 8 months ago #

    Hi Ben,

    I am also in need of this function. Is it possible for you to explain how to realize it by ourselves or when when we can expect the feature added to the plugin.

    Would be great.

    Thanks in advance.

  8. spawnbob
    Member
    Posted 6 months ago #

    Please explain - It's a major problem a the moment...

    Thanks for your work!!

  9. ben.moody
    Member
    Plugin Author

    Posted 5 months ago #

    Hi

    I'm currently working on a solution to this but it's a tricky one due to how gravity forms validation api functions.

    I think i have a custom solution which should work with the uploader.

    I'll update you here once it's ready

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags