• Resolved dudemcpek

    (@dudemcpek)


    Hi! Plugin is great and is working on the site, however I got two questions.

    1. Is it possible to make checkboxes mandatory? That they have to be checked in order to submit content (just like other fields can be required to be filled before sumbitting).

    2. Perhaps I’m doing something wrong but it appears only one photo can be sumbitted / uploaded at the same time. I put multiple=”” into shortcode as it is in default form but no luck. Should it be something else?

    https://www.ads-software.com/plugins/frontend-uploader/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    1. Unfortunately, checkboxes do not support ‘required’ parameter right now. Although I put this on my list for future release.

    2. You should remove “multiple” parameter from your shortcode, multiple file uploads are enabled by default.

    Thread Starter dudemcpek

    (@dudemcpek)

    Thanks for your quick reply.

    1. Great, will be checking future changes / releases ??

    2. I tried without multiple parameter as well, but it still lets to choose only one photo / file.

    I have the form set as:

    [fu-upload-form class="validate" title="Submissions" form_layout="post_image"]
    [input type="text" class="required" name="post_title" description="Title"]
    [input type="text" class="required" name="post_author" description="Author"]
    [input type="text" name="url_for_att" description="URL (optional)"]
    [textarea name="post_content" class="textarea" id="ug_content" description="Description (optional)"]
    [input type="file" name="photo" id="ug_photo" class="required" description="Upload Photo(s)"]
    [input type="submit" class="btn" value="Submit"]
    [/fu-upload-form]

    Plugin Author Rinat

    (@rinatkhaziev)

    2. Oh, you’re using custom form, in that case you need to set multiple=”true” or multiple=”multiple”
    [input type="file" name="photo" id="ug_photo" class="required" multiple="true" description="Upload Photo(s)"]

    Thread Starter dudemcpek

    (@dudemcpek)

    Well I feel silly now. ??
    Of course it works. Thanks!

    hello
    where must I put this code

    [input type=”file” name=”photo” id=”ug_photo” class=”required” multiple=”true” description=”Upload Photo(s)”]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mandatory checkbox and multiple photos’ is closed to new replies.