Skip to main content
Participating Frequently
September 18, 2020
Answered

Is it possible to to customize a text box in a form?

  • September 18, 2020
  • 1 reply
  • 2767 views

In the attached screenshot, I want to make the note field fillable. But the problem is, on Acrobat acrobat DC, I can't find any option to achieve what I want. I want to put the textbox but there is no option to make the text box size other than rectangle or square. So, is it possile I could make the text box in such a way that can fit the format of the note section shown in the screenshot? 

Thank you for your help!:)

This topic has been closed for replies.
Correct answer ls_rbls

Here is custom keystroke  javascript that allows to do that:

 

 

if (event.fieldFull) {
    getField("NOTE.1").setFocus();
}

 

 

I also added a reset button (set as visible but doesn't print) that clears the notes and a custom format script to the "take notes main textfield so you can see other possibilities with Acrobat javascript

 

 

if (!event.value) {

    event.value = "Wrte down your thoughts.  Take Notes!";

    event.target.display = display.noPrint;

} else {

    event.target.display = display.visible;

}

 

 

 Here's the sample: SAMPLE2 

1 reply

ls_rbls
Community Expert
Community Expert
September 18, 2020

See the example I created with your shared screenshot.

 

Let me know if that works

 

Participating Frequently
September 18, 2020

Thank you for your reply. That's what I want but not exactly! I don't want to click everytime to go to the next cell(or line). Is there a way I could make it flow as I write and can use "Enter" to go to the next line just like we do in most of the text based apps?

Participating Frequently
September 18, 2020

I added the script on the first 10 lines. 

 

All you have to do is chasnge the name of the text field to set focus to the next text field.

 

Open the Prepare Form tool, right-Right-click on the field that you want to use the script and select "Properties" from the context menu. Then go to the "Format" tab and click on the Custom Keystroke Button and paste the script that I posted there.

 

See slide:

 


Thank you so much! Is it possibe to use a loop here so that I don't have to do it for every field?