'bang' to use value property values

can we use the vlaue property value in same text Filed  for validate same text Field,

eg:

a!integerField(  
   value: ,
   saveInto: ,
   align: "LEFT",
   labelPosition: "ADJACENT",
   refreshAfter: "UNFOCUS",
    validations: 

want high lighted value property value here to validate the field without storing the value in local variable or rule input . want to know it is possible or not.  

)

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Appian Employee
    in reply to Gawali

    What's your use case?

    If the value of the field is hard-coded, the designer knows what it is, and there should be no need for a validation.

    Assuming you use local variables defined in the interface load, you can then reference the save variable in the validation expression.

    a!integerField(
      label: "Integer",
      labelPosition: "ABOVE",
      value: local!myInt,
      saveInto: local!myInt,
      refreshAfter: "UNFOCUS",
      validations: {
        if(
          not(isnull(local!myInt)),
          if(
            local!myInt<=100,
            "error",
            {}
          ),
          {}
        )
      }
    )

Children