Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

How do I get multiple lines to print for a blank text field so that it can be filled in by hand?

Avatar

Level 2

I have to design forms that are fillable electronically and by hand.  The problem that I am running in to is supplying multiple lines that will print for people that are hand filling the form.  I have tried to add an image of lines behind the text field, but these would get in the way when the form was filled in electronically.

I am using LiveCycle Designer ES2 v. 9.0 on a Windows machine.

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Ok.

  1. Take a textfield
  2. Go to Object | Allow multiple lines
  3. Go to Layout | Height | activate "Expand to fit"
  4. Go to the initialize-Event or readyform (You have to change the _ for your textfield)     this.rawValue = "___________\n___________\n___________";
  5. Go to the enter-Event   this.rawValue = null;
  6. Go to the exit-Event  

          if(this.rawValue == null)

          {

                this.rawValue = "___________\n___________\n___________";

          }else{}

With this solution you can simulate the same as pattern see above.

I hope this is helpfull for you,

Mandy

View solution in original post

8 Replies

Avatar

Level 5

You could use the following.

If you need only one line you can use the following:

  • mark the field
  • go to "Object" | "Field" | "Pattern"
  • click "Allow empty"
  • enter ________________
  • make a preview
  • you'll have a line if the field empty
  • you'll have no line if the field have an entry

If you need more lines in one field, please inform me. I have also a turnaround for this problem.

I hope this is helpfull,

Mandy

Avatar

Level 2

How would I do multiple blank lines?  Single line helped, but I need to do at least three.

Avatar

Correct answer by
Level 5

Ok.

  1. Take a textfield
  2. Go to Object | Allow multiple lines
  3. Go to Layout | Height | activate "Expand to fit"
  4. Go to the initialize-Event or readyform (You have to change the _ for your textfield)     this.rawValue = "___________\n___________\n___________";
  5. Go to the enter-Event   this.rawValue = null;
  6. Go to the exit-Event  

          if(this.rawValue == null)

          {

                this.rawValue = "___________\n___________\n___________";

          }else{}

With this solution you can simulate the same as pattern see above.

I hope this is helpfull for you,

Mandy

Avatar

Level 10

You could set up a print button that hides the existing fields and shows replacement fields that have the lines in them.

This has come up before but I can't seem to track down the thread.

Avatar

Level 2

I keep gettting the following error:

The following error was found with the XML source:

Xml parsing error: not well-formed (invalid token) (error code 4), line 3427, column 47 of file

Avatar

Level 2

If you find the thread, let me know.

Avatar

Level 2

Now that I know that it goes into a subform, and not XML, this worked perfectly! 

Thank you so much!

Avatar

Level 5

I'm happy for you that it works. And now that you know that you have to use the scripteditor not the xml-source

Good luck furthermore.