Support » Plugin: Gravity Forms Advanced File Uploader » required field

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ben.moody

    (@benmoody)

    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

    thomas

    (@beloutte)

    Hi Ben,

    thanks, I’ll take a look !

    Piet Bos

    (@senlin)

    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.

    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.

    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 !

    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.

    Please explain – It’s a major problem a the moment…

    Thanks for your work!!

    Plugin Author ben.moody

    (@benmoody)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘required field’ is closed to new replies.