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

Button Hidden Textbox

New Here ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

can i press a button and have a hidden text box pop up?

TOPICS
PDF forms

Views

746

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 1 Correct answer

Community Expert , Aug 13, 2018 Aug 13, 2018

Let's say the text field is called "Text1". Use this JavaScript code as the MouseUp event of your button field:

var f = this.getField("Text1");

f.display = (f.display==display.visible) ? display.hidden : display.visible;

Votes

Translate

Translate
Community Expert ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

Sure. But do you want to hide the field if the button is clicked again?

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 ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

Yes and How do I do this

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 ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

Let's say the text field is called "Text1". Use this JavaScript code as the MouseUp event of your button field:

var f = this.getField("Text1");

f.display = (f.display==display.visible) ? display.hidden : display.visible;

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 ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

LATEST

Perfect Thank You

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 ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

If the hidden "textbox" is a button then you can make it hide if you click itself.

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