Validation in shopify

Highlighted
New Member
2 0 0

I am trying to validate select box in liquid file .

 

<div class="contact-form__field contact-form__field Influencer">
{% include 'select-input' with
mod_name: 'inquiry[natureofrelationship]',
mod_class: 'contact__field select--contact',
mod_label: field_label,
mod_on_change: 'onInputChange',
mod_required: true,
mod_value: "function(){return '-'}",
mod_error: field_error,
mod_options: select_options,
mod_required: true,
%}
</div>
 
 
I want to validate by document.getElementById('nameofbox').value=''
but how can i add id in liquid file select box .
 
Can anyone help me please ?
0 Likes