[Skip to main content](#vessel-content)

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

##

- **[frioman](/forum/user/44914-frioman "View frioman's Profile")**
- [![frioman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44914-frioman "View frioman's Profile") Topic Author
- [ Offline](/forum/user/44914-frioman)

Less More

- Posts: 8
- Thank you received: 0
-
-

8 years 2 months ago [\#295980](#295980) by [frioman](/forum/user/44914-frioman "View frioman's Profile")  *[If custom fields are not completed, then require an image upload.](/forum/27-checkout/895367-if-custom-fields-are-not-completed-then-require-an-image-upload#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?")* was created by *[frioman](/forum/user/44914-frioman "View frioman's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTM2Ny1pZi1jdXN0b20tZmllbGRzLWFyZS1ub3QtY29tcGxldGVkLXRoZW4tcmVxdWlyZS1hbi1pbWFnZS11cGxvYWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

8 years 2 months ago -  8 years 2 months ago [\#296039](#296039) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[If custom fields are not completed, then require an image upload.](/forum/27-checkout/895367-if-custom-fields-are-not-completed-then-require-an-image-upload#296039 "-- 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?")*

Hello,

I can recommand to you to add another **custom field** let explain this :
**1°** 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 ?*"**
**2°** Use this new custom field to create a condition to display or not, as you can see on my screenshot :

[ ![&#91;img](https://cdn.pbrd.co/images/HwPdfgo.png) ](https://cdn.pbrd.co/images/HwPdfgo.png "&#91;img")

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: 8 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTM2Ny1pZi1jdXN0b20tZmllbGRzLWFyZS1ub3QtY29tcGxldGVkLXRoZW4tcmVxdWlyZS1hbi1pbWFnZS11cGxvYWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.180 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
