Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disable the Copy and Paste for Inputfield in BSP Application


I have a requirement for disabling the copy paste option for INPUTFIELD in BSP application using HTMLB.

I got the required javascript code but i dont have onBlur,onChange, keyDown,keyPress etc events in htmlb.

can any one suggest me how can i use the inputfield events in htmlb.

Thanks & Regards

Former Member
Former Member replied

Hi Siva ,

If this is not the case ur looking for then try the below code ,


data : tmp_string type string.

concatenate `<input onCopy="return false;"` `onPaste="return false;"` into tmp_string.


<bsp:findAndReplace find = "<input"

replace = "<%= tmp_string %>" >

<htmlb:inputField id = "Inf1"

value = "test"/>


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question