Skip navigation
Currently Being Moderated

restricting text input by textfield size not chars.

Sep 14, 2012 11:15 AM

I dont usually have to mess around too much with dynamic/input text, so im really hoping this is an issue of me not finding the right parameter or setting in the properties panel.

 

I have a series of multiline input text fields.

 

For each text field I just need to restrict the number of characters to the size of the text field. so, essentially when the field is filled up, it wont accept any new input.

 

Restricting the field by character isnt a viable solution based on the approved font for this project. (18 W s may fill up the field, but 18a s only fill up one line of text.)

 

 

Any suggestions as to resolve this issue would be appreicated.

 

 

M.

 
Replies
  • Currently Being Moderated
    Sep 14, 2012 11:24 AM   in reply to MATTANDIE

    If you cannot base it on character count, base it on the TextField.width versus the TextField.textWidth properties.  If the textWidth exceeds the TextField width, then chop off whatever is on the end until it isn't.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 14, 2012 11:45 AM   in reply to MATTANDIE

    Yes, you should be able to applya similar solution using height instead of width.

     
    |
    Mark as:

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