This discussion is archived
1 Reply Latest reply: Oct 12, 2011 8:55 AM by KenK RSS

How to disable Copy/Paste to a field in Siebel 7.8

user84473 Newbie
Currently Being Moderated
Hi Gurus,
Is there a way to disable paste into a certain field in Siebel 7.8?There is a way to do that in normal HTML but is it possible in Siebel.
  • 1. Re: How to disable Copy/Paste to a field in Siebel 7.8
    KenK Explorer
    Currently Being Moderated
    One option that comes to mind is to intercept the HTML that is generated for the field on the applet and append to it with the HTML/Javascript that would prevent the pasting.

    For example on the login applet we put some code in capture the enter key since it did not work out of the box.

         if (ControlName == "Password" && Property == "FormattedHtml")
         {
              //onkeypress='JavaScript:null'
              var iOnKeyPressLoc = HTML.indexOf("onkeypress='JavaScript:null'");
              if (iOnKeyPressLoc > 0)
              {
                   //.... REMOVED FOR DISPLAY ....               
                   HTML = sLeftHTML + " " + sMidHTML + " " + sRightHTML;
              }
         }

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points