Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Auto Highlight Default Text Field Input

New Here ,
Jul 14, 2024 Jul 14, 2024

Is there any way to make it so that when you click on a text field with a default value, highlight this when you click on it or clear out the field, whichever is easier?  I want the ability to click on the field to enter text right away, not have to delete what is defaulted in the field.  thank you.

TOPICS
PDF forms
360
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jul 14, 2024 Jul 14, 2024

Place this script in an "onFocus" action:

 

if (event.target.value == event.target.defaultValue) {event.target.value = "";}

Acrobate du PDF, InDesigner et Photoshopographe

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2024 Jul 14, 2024

Place this script in an "onFocus" action:

 

if (event.target.value == event.target.defaultValue) {event.target.value = "";}

Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2024 Jul 14, 2024
LATEST

Add the following script as mouse enter action:

event.target.setFocus();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines