paragraphfield in an interface is considering enters, tabs and spaces only as a value

Hi All,

I have a paragraph field (* Required field) in an interface. When I input Enters or Spaces or Tabs only and no other characters it is consider as a value and not firing the validation error. For user it looks like empty values and validation didn't fired. Need a validation so that Enters or Spaces or Tabs only are not considered as va[lues.

a!paragraphField(
.....


validations: ???

......
)

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Sameer Ul Haq

    a!localVariables(
      local!X,
      {
      a!paragraphField(
        label: "Paragraph",
        labelPosition: "ABOVE",
        value: local!X,
        saveInto: {local!X},
        refreshAfter: "UNFOCUS",
        height: "MEDIUM",
        validations: {
          if(a!isNullOrEmpty(fn!trim(local!X)),"Please enter value","")
        }
      )
    })

    Your variable means where you ar5e storing the value of paragraph field . Can we see your code of the paragraph field 

Children