Allow file attachment for certain attributes

Hello. What is the function.php code to make file attachment is required for certain attributes only. For example,

Attribute number 1,
Field name: how
Filed type: select
Option 1: “Instant download”
Option 2: “via link”

Attribute number 2,
Field name: file
Field type: attachment

if I choose “instant download” in attribute number 1, file attachment is required. But if I choose via link, file attachment is not required.

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.