Skip navigation
wrenm
Currently Being Moderated

Making a text box expand as you type into it?

Jun 10, 2009 2:34 PM

I was wondering if it is possible to make a text box (or any kind of box) expand as you type into it.  Currently the box does not have a caption, I simply want to allow the value box to expand as i type into it.  It would also be great if it would expand to another page...does anyone know if this is possible and if so how can i do it?

 
Replies 1 2 Previous Next
  • Currently Being Moderated
    Jun 10, 2009 10:51 PM   in reply to wrenm

    Hi,

    There is one way how you can reach what you want.

    First set your TextField Allow Multiple Lines

    1.JPG

    Second, at the Layout tab set Expand to fit(heigth ar width)

    2.JPG

    After you will insert text to TextFiled it will be expanded.

    Example attached.

     

    BR,

    Paul Butenko

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2009 4:47 AM   in reply to Paul Butenko

    The box will not expand until you exit the field. While you are in the field typing ...scroll bars will appear.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2009 6:31 AM   in reply to wrenm

    The form must be saved as dynamic as well and the root subform must be flowed for expansion to occur.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2009 6:49 AM   in reply to wrenm

    It woudl be easier for me to show you on your form ...can you post your form and I will tell you what I changed.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 6:04 AM   in reply to wrenm

    I have a question along these lines also. I have been able to get my text box to expand but then it overlaps the section below it. Is there some code I can use for the subform to get  the next subform to move as the text field it expanding?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 7:03 AM   in reply to MacEwen

    Hi,

    you subforms shoud be flowed. If you will post your form i'll check it.

     

    BR,

    Paul Butenko

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 8:04 AM   in reply to Paul Butenko

    Here it is... and thanks!

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 10:34 PM   in reply to MacEwen

    Hi,

    I made your flowedText subform flowable and now it working fine.

    See attach.

     

    BR,

    Paul Butenko

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 16, 2009 7:19 AM   in reply to wrenm

    Well if it's not in designer itself, I wouldn't even think about programming this as each and every font has different widths and sizes. Meaning if you want to expand it correctly you'll need to know about everything about the fonts in the first place and well you know as well as I do ... it's a crazy man's job.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2009 11:50 AM   in reply to wrenm

    Hi Wrenm, I took a quick look and fixed things up for you.

     

    I setup and named some subforms:

    • subMain is the main subform container that holds everything else, it's set to Flowed and Allow Page Breaks.
    • subHeader is the info at the top of the form, it is set to Positioned.
    • subNote contains your text box and is set to Flowed and Allow Page Breaks. I made the textbox inside the full width and opened it up larger for a starting size. I set the text box to allow Rich Text so you can do bold, italic, etc.
    • subFooter contains your footer info, it is set to Positioned and will follow the text box expansion. You could also put it on the Master page and have it at the bottom of every page.
    • on the Master page I brought the content area down a bit and put a "Page n of m" field at the top for page numbering (it's on the Custom Object Library palette).

     

    I think that should get you started!

     

    Oh, and saved the form type as "Adobe Dynamic XML Form".

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2009 8:46 AM   in reply to wrenm

    File->Save As -- the "Save as type" dropdown is where you pick the file type.

     

    As the file is still queued here's a link to download it:

    https://share.acrobat.com/adc/document.do?docid=6dc5417d-fe5e-4809-926 a-90633089b270

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2009 9:17 AM   in reply to wrenm

    Weird, don't know what's up with that -- acrobat.com seems to be having trouble.

     

    Give me your email address and I'll send it to you.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2009 10:24 AM   in reply to wrenm

    File sent.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2009 2:34 PM   in reply to wrenm

    The content area is found on the Master Page - on the hierarchy palette.

     

    Your "live" design area is controlled by the content area.

     

    If you didn't want the header on the second (or more) pages you could add a second master page that has no header and the content area pulled up near the top of the form. Then the rest of the pages of your form could use the second master to flow onto.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 10:16 AM   in reply to Jono Moore

    I have been reading this thread and trying to apply the suggestions to the form I have attached below.  I was asked to make the four text areas for Symptoms, Interventions, Response and Plan be able to expand to accomodate longer notes from the various folk working on the cases.  I haven't been able to do much to it -- no matter where I start I keep getting the message that

     

    "although the object is allowed to break, deselecting the Allow Page Breaks Within Content option of the parent object restricts this object from breaking within pages."

     

    I've gone through the doc about 14 ways from Sunday but can't sort this out.  Have attached the ORIGINAL  pain in the ____ file.

     

    Would appreciate a second set of eyes on this one, I confess I can't sort out where/how to start implementing the changes needed.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 10:29 AM   in reply to Karamy

    File is still queued but that error means the subform containing the objects that are allowed to break is not set to allow page breaks.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 10:31 AM   in reply to wrenm

    Does anyone know how to make these dynamic forms accessible by a screen reader such as JAWS for vision impaired users?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 10:39 AM   in reply to Jono Moore

    ok,  (went back and looked)  the option is greyed out.   What settings do I need to change to allow me to make it live would be the question I guess.  Once I can at least do that I can start making the rest of the changes to expand the text boxes.

     

    Many thanks for looking at this!!  was up till 4 this morning with this beast

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 10:43 AM   in reply to jdrcs

    jdrcs wrote:

     

    Does anyone know how to make these dynamic forms accessible by a screen reader such as JAWS for vision impaired users?

     

    Please don't hijack threads, I've responded in your existing thread.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 11:09 AM   in reply to Karamy

    Karamy wrote:

     

    ok,  (went back and looked)  the option is greyed out.   What settings do I need to change to allow me to make it live would be the question I guess.  Once I can at least do that I can start making the rest of the changes to expand the text boxes.

     

    Many thanks for looking at this!!  was up till 4 this morning with this beast

     

    Wow, that form is a bit of a mess.

     

    You haven't used any subforms so it's not going to work as-is.

     

    I won't have time to look at it closely until tonight. Some questions/comments in the meantime:

     

    • Do you really need 2 master pages - does that block need to be at the bottom of each page? Or is it just supposed to follow everything else.
    • You've used tables to do a lot of the layout - probably not a good idea.
    • You've made the Content Area the full size of the page, better to size it what you want your margins to be.
    • You have no master subform (or any at all for that matter...)

     

    Subforms control how and where things get layed out and control flow. Did you look at the fixed file I posted for wrenm in message 14? It should give you a good idea of how subform hierarchy works.

     

    Basically:

    Content Area

         Subform

              Subform

              Subform

                   Subform

    etc.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 11:19 AM   in reply to Jono Moore

    Any help would be greatly appreciated and, yes, that is a mess x about 17.   The good news is I didn't design it -- the bad news is I got tagged to try and fix it.

     

    I'll try to answer in order:

     

    You haven't used any subforms so it's not going to work as-is.

     

                        I don't think whoever did the initial form knew about the subform issue so no provisions made for them.

     

    I won't have time to look at it closely until tonight. Some questions/comments in the meantime:

     

    • Do you really need 2 master pages - does that block need to be at the bottom of each page? Or is it just supposed to follow everything else.

                         the information is to be on the bottom of every page -- clients/workers need to sign each page to prove they have read the information

    • You've used tables to do a lot of the layout - probably not a good idea.

                                  if we need to dump the tables, that's fine -  I looked at the 7_Questions_Flowing.pdf from another thread and I can make it work

                                  the way it needs to with the information in a header but they WANT it as a footer.

     

    • You've made the Content Area the full size of the page, better to size it what you want your margins to be.

                                    ok, that should be the easy fix of the batch

     

     

    • You have no master subform (or any at all for that matter...)

                                 my problem was I couldn't find a way to add a master subform that didn't give me that message.  If I couldn't get that

                                  one to work without the error message then none contained within would either ??

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2009 8:40 AM   in reply to Karamy

    Didn't have time to look at it last night, will try and get to it tonight!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2009 10:40 AM   in reply to Jono Moore

    that's fine and thank you, thank you, thank you.. this thing's driving me bats!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2009 2:53 PM   in reply to Karamy

    Here you go!

     

    I ended up rebuilding it (mostly). The original file was pretty severely messed up - whoever built it didn't bother trying to figure out how Designer works or what it does.

     

    Anyway, you now have one Master Page with the footer fields on it. One main subform that contains the other elements. Everything is set to flow.

     

    On the time calculation line you could put a script on the Duration field to do the math. Someone else could maybe help out here, I tried a quick Formcalc calculation but because the Participant field divides and it doesn't have a number yet it was generating an error - wasn't sure how to get the calculation to wait until there was a value in that field (I've left the calculation commented out in the Calculate event of the Duration field).

     

    The footer on the Master Page needs work, I just quickly put some fields together in there.

     

    That should be enough to get you going anyway!

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2009 3:49 PM   in reply to Jono Moore

    oh my gosh.....Jono, thank you!  it is showing as queued but I'll pop back later and download.

     

    I cannot thank you enough for your time and patience!!!!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2009 6:00 PM   in reply to Karamy

    It still says "queued"   how long does it take normallly?  if it would be easier can you email?  I am kspencer@computergumbo.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 27, 2009 8:59 AM   in reply to Karamy

    Queueing can take anywhere from a few minutes to a few days...

     

    File emailed.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2009 7:19 PM   in reply to Jono Moore

    THANK you!   It is gorgeous!  I did a bit to add the + = /  to finalize matching the form and it is on it way.  I canNOT tell you how much I appreciate the time and energy you put into helping me with this!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2009 8:21 AM   in reply to Karamy

    Glad I could help. Yeah, I didn't get everything in there, was more worried about getting a proper structure set up for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 23, 2009 11:57 AM   in reply to Jono Moore

    Any chance you might be able to help out a teacher with the same issue?  I am trying to create classroom observation forms and having no luck with the dynamic expandind text boxes.  I am beyond frustrated and need to get these out into my county teachers' hands.  Thanks!

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2009 11:32 AM   in reply to wrenm

    Hi~

    I too have been very frustrated with figuring out things on my own (I do not find the books helpful and I've been searching online for weeks).  I have figured out how to do the subforms and making my text field boxes expand; however, it overlaps the information below it.  How do I get the rest of my document to move down if the box gets expanded when it is used by the user?  I would SO Greatly appreciate any help you can offer.....I'm almost out of Advil and ready to start pulling my hair out!!!

     

    Thanks~

    Tammie

     
    |
    Mark as:
1 2 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points