How can I prevent copy paste for a field like Account Number

Certified Lead Developer

Hi Champ,

I want to prevent user from copy pasting from one field to other for example in the Account Number field. Is that possible?

Regards,

Ghanashyam

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hello ,

    Not something great but just for the time being you may try this simple logic.

    a!localVariables(
      local!text,
      local!dummy: "************",
      local!reEnter,
      {
        a!TextField(
          label: "Password",
          labelPosition: "ABOVE",
          value: if(
            and(local!text, local!reEnter),
            local!text,
            local!dummy
          ),
          saveInto: local!text,
          refreshAfter: "UNFOCUS"
        ),
        a!textField(
          label: "Re-Enter",
          labelPosition: "ABOVE",
          value: local!reEnter,
          saveInto: local!reEnter,
          validations: if(
            exact(local!text, local!reEnter),
            "",
            "Values do not match"
          )
        ),
    
      }
    )

    This will do the work I guess.

Reply
  • 0
    Certified Senior Developer

    Hello ,

    Not something great but just for the time being you may try this simple logic.

    a!localVariables(
      local!text,
      local!dummy: "************",
      local!reEnter,
      {
        a!TextField(
          label: "Password",
          labelPosition: "ABOVE",
          value: if(
            and(local!text, local!reEnter),
            local!text,
            local!dummy
          ),
          saveInto: local!text,
          refreshAfter: "UNFOCUS"
        ),
        a!textField(
          label: "Re-Enter",
          labelPosition: "ABOVE",
          value: local!reEnter,
          saveInto: local!reEnter,
          validations: if(
            exact(local!text, local!reEnter),
            "",
            "Values do not match"
          )
        ),
    
      }
    )

    This will do the work I guess.

Children
No Data