If custom fields are not completed, then require an image upload.

  • Posts: 8
  • Thank you received: 0
5 years 8 months ago #295980

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.0.25
-- Browser(s) name and version -- : Chrome 67.0.3396.99
-- Error-message(debug-mod must be tuned on) -- : No error

During checkout, we must obtain (the law) either our customer's Optometrist name, phone, email, etc. (preferred), OR...an image of our customer's actual prescription. The customer must provide the Optometrist info OR the prescription image in order for the checkout process to complete -- Optometrist info or image upload, but not both.

The required custom fields for the Optometrist information currently seem to be working fine on the site; however, we don't want to REQUIRE these custom fields IF the customer is going to upload an image file instead? Not sure what to do?

Please Log in or Create an account to join the conversation.

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
5 years 7 months ago #296039

Hello,

I can recommand to you to add another custom field let explain this :
Create a new custom field, a radio button type (Yes/No), with as a label, a question, in your case something as :
"Do you have a current prescription ?"
Use this new custom field to create a condition to display or not, as you can see on my screenshot :



Here, this current custom field, will only be displayed if the Test custom field have the value : Yes
And so, you can imagine that in your other custom field, you will do the same settings except that is displaying condition will be on the No value.

Your user will just have to complete the question to see the required custom field.
Hope this will fit your needs.

Regards

Last edit: 5 years 7 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum