Skip to main content
Known Participant
Apr 25, 2023 7:47 AM UTC
Question

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

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
Participating Frequently
Apr 25, 2023 7:57 AM UTC

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

stefanhelzle0001
Brainy
Apr 25, 2023 8:00 AM UTC

This kind of low-level customizations are not supported.

Participating Frequently
Apr 25, 2023 8:01 AM UTC

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

tushark6475
Participating Frequently
Apr 25, 2023 8:09 AM UTC

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.


Known Participant
Apr 25, 2023 8:12 AM UTC

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
Inspiring
Apr 25, 2023 11:11 AM UTC

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
Participating Frequently
Apr 26, 2023 7:47 AM UTC

encryptedTextField will take care of that

rajkumary3857
New Participant
Apr 26, 2023 9:42 AM UTC

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