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

Display text that is hidden in a scroll long text box by hovering over the field

New Here ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Hello,

I am creating a pdf form that contains text fields. The fields have Multi-line, scroll long text, and a fixed font size ('auto' font size is not a suitbale option). When the field's text exceeds the height of the field, the text becomes hidden and can only be viewed by using the up and down scrolls. This however, is not ideal for the forms purpose.

 

Is there a way to hover over a field (which has hidden text) and display the field's content in a pop-up?

 

Thank you in advance for your assistance.

 

Kind regards,

Sarb

 

 

TOPICS
General troubleshooting , How to , JavaScript , PDF forms

Views

1.1K

Translate

Translate

Report

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

correct answers 3 Correct answers

Community Expert , Mar 23, 2021 Mar 23, 2021

Yes. Use the following code as the field's custom Validation script:

 

event.target.userName = event.value;

Votes

Translate

Translate
Community Expert , Mar 23, 2021 Mar 23, 2021

Just a tip if it doesn't work when you exit field, try to write something in the field or delete something.

Votes

Translate

Translate
Community Expert , Mar 23, 2021 Mar 23, 2021

Good point. You have to change the value of the field for it to "kick in".

Votes

Translate

Translate
Community Expert ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Yes. Use the following code as the field's custom Validation script:

 

event.target.userName = event.value;

Votes

Translate

Translate

Report

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 ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

However, there is a limit to the size of the tooltip popup... So if your field contains a very long text it might cause issues.

Votes

Translate

Translate

Report

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 ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

I think you can fit up to 40 lines of text in it.

Votes

Translate

Translate

Report

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
New Here ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Hi,

 

I have entered the exact script you provided above and it doesn't seem to have done anything.

 

Do I need to replace any of the text in the script with field names or other details for it to work?

 

Thanks.

Votes

Translate

Translate

Report

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 ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

No, but you do have to exit the field for the value to update.

If it's not working for you please share the file with us.

Votes

Translate

Translate

Report

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 ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Just a tip if it doesn't work when you exit field, try to write something in the field or delete something.

Votes

Translate

Translate

Report

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 ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Good point. You have to change the value of the field for it to "kick in".

Votes

Translate

Translate

Report

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
New Here ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

LATEST

Thankyou so much.

Changing the field content did the trick.

Am so happy that this has been resolved :).

 

Votes

Translate

Translate

Report

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