10 Replies Latest reply on Jul 14, 2010 8:26 AM by Thom Parker

    How to limit the length of a text field in a dialog (ADM)

    phil_mtl

      Hi all,

       

      I need to limit the length of an edit_text field in a dialog (ADM) but char_limit don't seem to work, is it my code the problem  ?

       

                {
                  char_width: 8,
                  height: 100,
                  item_id: "Rete",
                  type: "edit_text",
                  multiline: true,
                  char_limit: 5,
                  width: 500,
                }

       

      Else maybe I can use events to do the same thing with onKeyStroke event but i don't know how to use event in a dialog (ADM) or if it's even possible...

       

      Any idea ?

      Thank you for your help.

       

      Phil