I tried a this validator definition:
and it's working client-side, only (verified with serverOnly="true")
as the docs say:
"To allow server-side enforcement, a required validator can be used instead. Conditional criteria can be specified with the applyWhen property."
so I tried
it works client side, but I wonder if it's validating also server side.
if I add serverOnly:true, it seems to expect a DMI method to perform validation. How can I verify server side validation?
Code:
<field sqlType="varchar" sqlLength="255" name="CAUSALE_SECONDA" length="255" type="text"> <validators> <validator type="requiredIf" expression="item.form.getValue('INCLUDI_SECONDA_PARTE')"/> </validators> </field> <field sqlType="varchar" sqlLength="1" name="INCLUDI_SECONDA_PARTE" type="boolean" sqlStorageStrategy="singleCharTF"> </field>
as the docs say:
"To allow server-side enforcement, a required validator can be used instead. Conditional criteria can be specified with the applyWhen property."
so I tried
Code:
validators:[ {type:"required", applyWhen:{INCLUDI_SECONDA_PARTE:true}} ]
if I add serverOnly:true, it seems to expect a DMI method to perform validation. How can I verify server side validation?
Comment