Title: IInput Attributes
Last modified: February 6, 2024

---

# IInput Attributes

 *  Resolved [josespinosa](https://wordpress.org/support/users/josespinosa/)
 * (@josespinosa)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/iinput-attributes/)
 * Hi. Is it possible to add attributes to the input fields?
   I need to add the following:
   oncopy=”return false”onpaste=”return false”autocomplete=”off”
 * Thanks for your help.

Viewing 1 replies (of 1 total)

 *  [Abul Khoyer](https://wordpress.org/support/users/hellokhoyer/)
 * (@hellokhoyer)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/iinput-attributes/#post-17408491)
 * Hello [@josespinosa](https://wordpress.org/support/users/josespinosa/),
 * There is no default option to add attributes with input fields. You can add using
   custom JS. Please find the **Custom CSS/JS** tab under the form’s **Settings &
   Integrations** section. Then use the following JS in the Custom JavaScript section
   and replace the input’s name attribute according to yours.
 * `let inputName = document.querySelector('input[data-name="input_text"]');
   inputName.
   setAttribute('oncopy', 'return false');inputName.setAttribute('onpaste', 'return
   false');inputName.setAttribute('autocomplete', 'off');
 * Hope this helps.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘IInput Attributes’ is closed to new replies.

 * ![](https://ps.w.org/fluentform/assets/icon-256x256.png?rev=3354580)
 * [Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder](https://wordpress.org/plugins/fluentform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluentform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluentform/)
 * [Active Topics](https://wordpress.org/support/plugin/fluentform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluentform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluentform/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abul Khoyer](https://wordpress.org/support/users/hellokhoyer/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/iinput-attributes/#post-17408491)
 * Status: resolved