Ready to get started?Download WordPress


Gravity Forms Advanced File Uploader
required field (6 posts)

  1. thomas
    Posted 3 months ago #


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


  2. ben.moody
    Plugin Author

    Posted 3 months ago #


    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:



  3. thomas
    Posted 3 months ago #

    Hi Ben,

    thanks, I'll take a look !

  4. Piet
    Posted 2 months 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
    Posted 2 months 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
    Posted 1 week 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 !


You must log in to post.

About this Plugin

About this Topic