• Resolved cloelem

    (@cloelem)


    Hello,

    I have a problem with several products on my site. They are configured with WC Fields Factory to insert an image in a mandatory way (you can clearly see on the product the required mention with the *).
    Except that the user can still add the product to the cart without adding a file… I don’t understand why the “required” parameter does not work.

    Does anyone have a solution please?
    Thank you and good day

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Sark

    (@sarkware)

    Hi, in your wp-admin go to Fields Factory -> Settings in that page you can find an option called Client Side Validation, set it to Yes

    Once done click on the Save Changes button, this should resolve the issue for now.

    Regarding the server side validation not happening for the file, pls share the screenshot of the file field configuration (so that we can determine whether this is related to config issue), also if possible pls share the excetion entries from php’s error.log file.

    That would help us understand whatr causes the issue.

    Thread Starter cloelem

    (@cloelem)

    Thank you for your reply.

    However, when I select the parameter you indicated, the product no wants to be added to the cart, nothing happens but there is no error message.

    Here is a screenshot of the file field configuration : https://quickforget.com/s/b78325c9992833aa3f4bff81c1fa5c0eae1c7999d29bdbb5

    Thanks !

    Plugin Contributor Sark

    (@sarkware)

    In your File Upload field’s config, make the Multiple File Upload option to No and click on the Update Field button.
    Once done pls check again and let me know.

    Thread Starter cloelem

    (@cloelem)

    Thank you very much, this solution worked!

    So I’m going to leave the field configured in this way and and too bad for importing multiple files.

    Thank you and good day !

    Plugin Contributor Sark

    (@sarkware)

    I left a hole in my test case by not testing File Field with required + multifile.
    I will include this in my test case and test it properly.
    Some other users were also reporting the same issue but I couldn’t guess what went wrong.
    Your screenshot of file field config helped me, that it could be happening with that combination of config.
    Anyway thanks to you, and I will include the fix with tyhe upcoming release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘File field required don’t works’ is closed to new replies.