I'm new in magento. I develop one module in Magento 2.2.2.
I want to do like that in system configuration that, user can enter value between 0 to 100 in that field.
User can't enter text value and negative value in that field.
How, this field validation I can apply in system configuration.
Please help me.
System.xml :
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="erdsystem" translate="label" sortOrder="10">
<label>ERD system</label>
</tab>
<section id="erdgeneral" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Configuration</label>
<tab>erdsystem</tab>
<resource>ERD_Helloworld::config_helloworld</resource>
<group id="settings" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="width" translate="label comment" sortOrder="0" type="text" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enter Width</label>
</field>
</group>
</section>
</system>