I have attached the Screen shot and Sail code. Form should not submit when numer

I have attached the Screen shot and Sail code. Form should not submit when numeric validation failed in the hidden section. Pease assist on this.

OriginalPostID-143944

OriginalPostID-143944

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    You have to put the numeric validation in the validations field in the a!formLayout(). That way the validation will always be checked, even if a specific section is hidden.

    You'll need to write a rule to check if local!b is a number, usually that's done this way:
    ri!variable: the string you'll be performing the numeric validation on.
    len(cleanwith(ri!variable,"0123456789"))=len(ri!variable)
Reply
  • 0
    Certified Lead Developer
    You have to put the numeric validation in the validations field in the a!formLayout(). That way the validation will always be checked, even if a specific section is hidden.

    You'll need to write a rule to check if local!b is a number, usually that's done this way:
    ri!variable: the string you'll be performing the numeric validation on.
    len(cleanwith(ri!variable,"0123456789"))=len(ri!variable)
Children
No Data