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

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

New Here ,
Sep 17, 2020 Sep 17, 2020

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!:)

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF forms
2.4K
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 ,
Sep 17, 2020 Sep 17, 2020

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 

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 ,
Sep 17, 2020 Sep 17, 2020

See the example I created with your shared screenshot.

 

Let me know if that works

 

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
New Here ,
Sep 17, 2020 Sep 17, 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?

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 ,
Sep 17, 2020 Sep 17, 2020

Setting  the tabbing structure by row allows to move to the next line or field with the TAB key.

 

However, you can incorporate a javascript to continue to write on the next line when the current text field is full.

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
New Here ,
Sep 17, 2020 Sep 17, 2020

Javascript one sounds promising! However, I don't think I can be able to write it as I don't have much knowledge about JS. 

Thank you so much for your precious time and effor to help me!:) 

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 ,
Sep 17, 2020 Sep 17, 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:

 

thoughts-notes.pngexpand image

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
New Here ,
Sep 17, 2020 Sep 17, 2020

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

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 ,
Sep 17, 2020 Sep 17, 2020

Yes, you're welcome , happy to help. 

 

I think it is possible to use a for loop but I may also be wrong. I am still learning javascript and I am not sure how to accomplish that yet. I can try though.

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
New Here ,
Sep 17, 2020 Sep 17, 2020
LATEST

Ohh that's great to know! I was making my mind to learn JS. After knowing what I can do with JS, I think it's worth a shot!:)

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 ,
Sep 17, 2020 Sep 17, 2020

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 

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
New Here ,
Sep 17, 2020 Sep 17, 2020

I have one more question. Can I stop the warning sound at the end of switcing the cell?

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 ,
Sep 17, 2020 Sep 17, 2020

I am actually trying to figure that out. I wasn't expecting that. But it seems like an audible  preference that can be disable. I have to document myself better.

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
New Here ,
Sep 17, 2020 Sep 17, 2020

No problem. I am sure you can figure it out!:)

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