WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Advanced File Uploader
required field (5 posts)

  1. thomas
    Member
    Posted 2 months 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 2 months 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 2 months ago #

    Hi Ben,

    thanks, I'll take a look !

  4. Piet
    Member
    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
    Member
    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags