am using asp.net maker 2025.10 , and i have a problem with required field , that is the first field is int and be as dropdownlist and when select one value should make the second field is required which is the text field , i tried many ways but there is no solution yet
function(fobj) {
var $fldx = $(this).fields("FieldX");
var $fldy = $(this).fields("FieldY");
if ($fldx.toNumber() == 1 && !$fldy.val())
return this.addCustomError("FieldY", "Field Y is required");
return true;
}