facebook

maximum length for text input widget: CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #332017 Reply

    walt
    Member

    I want to set the max character length for a text input widget. what is the proper way to set this property?

    It would be extremely helpful to include this info on the widget properties reference page.

    #332021 Reply

    Hi walt,

    You can use the Maximum Length property selecting the widget and set the value in properties panel.

    >It would be extremely helpful to include this info on the widget properties reference page.
    In fact this information is here: http://www.genuitec.com/mobile/docs/widgetProperties/widget_properties.html

    #332026 Reply

    walt
    Member

    Hi Octavio,

    thanks for the response. I must be missing something, here is what I see in the properties menu:
    See attachment text area.jpg
    Where is the max length property?

    Regardless, I am adjusting the property with a javascript function. I have certainly been using the widget property reference — my suggestion is to have a little code snippet showing the jquery method to set/get each property.

    thanks again for the help!

    Attachments:
    You must be logged in to view attached files.
    #332043 Reply

    Hi walt,

    The Text Area widget, doesn’t support this property at this time. You can try using the next snippet code on documentReadyhandler function:

    $(“#m1-projectName-textArea1”).keypress(function(e) {
    if (this.value.length >= 15) {
    e.preventDefault();
    }
    });

    #332062 Reply

    walt
    Member

    great, that works perfect. Thanks for the help!

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: maximum length for text input widget: CLOSED

You must be logged in to post in the forum log in