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

Fillable Field color change with text

New Here ,
Jun 02, 2023 Jun 02, 2023

Is there a way you can create a fillable PDF with text field properties that have a color border that will go away when the user has filled in the box?

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF , PDF forms
435
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 ,
Jun 02, 2023 Jun 02, 2023

Sure. As the custom Validation script of the field, enter the following:

event.target.lineWidth = (event.value=="") ? 0 : 1;

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 ,
Jun 02, 2023 Jun 02, 2023
LATEST

You'll need to set the border color beforehand, though, for it to work.

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