Skip to main content
Participant
April 22, 2020
Answered

Continuous text links

  • April 22, 2020
  • 2 replies
  • 918 views

I am trying to get text to continue on another line when one line is full. I have entered this code:

if (event.willCommit || event.fieldFull) {

this.getField("Text_2").setFocus();

}

in the custom keystroke field but when I test and type text in when it comes to the end of the line it misses a letter when it drops to the next line.

ie: Lorem Ipsum is simply dummy text of the printing and type

etting industry. Lorem Ipsum ......

This last word whould be 'typesetting' and even though I type the 's' it doesn't show. Any solutions

This topic has been closed for replies.
Correct answer EMJones

I was trying to quick google this because I was too lazy to find the form I had made previously to copy the code, I and see that this hasn't been answer yet.

In case you are still searching for that answer, or in the instance someone else gets this from their Google search.

Under Text Field Properties (double-clicking the form field)>Format>Custom>Custom Keystroke Script | Paste the following:

if (event.fieldFull) {

getField("NAME OF NEXT LINE").setFocus();

}

Whereas the name of the next text box is to take the place of NAME OF NEXT LINE

Furthermore, remember to turn off scrolling text under the Options tab.

Cheers.

2 replies

Participant
April 28, 2022

I am trying to link one item on the first drop down, which also popluates into the next field

e.g. Have created two lists in seperate fields.  SA12345 in first list and Joe Bloggs in second dropdown list. I want to know if you can link these so when I choose 12345 it populates Joe Bloggs into the second field

EMJones
EMJonesCorrect answer
Inspiring
March 8, 2021

I was trying to quick google this because I was too lazy to find the form I had made previously to copy the code, I and see that this hasn't been answer yet.

In case you are still searching for that answer, or in the instance someone else gets this from their Google search.

Under Text Field Properties (double-clicking the form field)>Format>Custom>Custom Keystroke Script | Paste the following:

if (event.fieldFull) {

getField("NAME OF NEXT LINE").setFocus();

}

Whereas the name of the next text box is to take the place of NAME OF NEXT LINE

Furthermore, remember to turn off scrolling text under the Options tab.

Cheers.