Skip to main content
April 25, 2023
Question

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

  • April 25, 2023
  • 8 replies
  • 0 views

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

8 replies

tejpals0001
April 25, 2023

It appears that Appian does not have any attributes that would apply to those things.

stefanhelzle0001
Brainy
April 25, 2023

This kind of low-level customizations are not supported.

April 25, 2023

You can use Masked Parameter at that time it can prevent you from copying 

tushark6475
April 25, 2023

In Appian, if a field is "masked" that means its input is hidden like a password box and it doesn't prevent you from copying.


April 25, 2023

As other guys are mentioned, in Appian its out of box feature, even masking attribute can do like password box and not prevent copy and paste

konduruc733182
April 25, 2023

Hello ghanashyamm0005,

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.

annap0005
April 26, 2023

encryptedTextField will take care of that

rajkumary3857
April 26, 2023

a!encryptedTextField() plus masked will prevent copy paste.