In my system.xml, I have these two fields
I want frontend validation between these two fields. So that maximum days can not be less than minimum days.
<field id="deliverydays" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Minimum days</label>
<frontend_class>validate-number validate-digits reminder-greater validate-greater-than-zero</frontend_class>
</field>
<field id="maximumdeliverydays" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Maximum days</label>
<frontend_class>validate-number validate-digits reminder-greater validate-greater-than-zero</frontend_class>
<backend_model>Vendor\Module\Model\System\Config\Backend\MaximumInterval</backend_model>
</field>
I applied backend model and checked value of maximum days against minimum days. Which works fine.
But I don't know how to apply frontend validation here.