Results 1 to 2 of 2

Thread: Setting text field value with URL parameter value

  1. #1
    Sencha User
    Join Date
    Oct 2014
    Posts
    2
    Vote Rating
    0
      0  

    Default Setting text field value with URL parameter value

    Totally new with Ext JS and Sencha Architect. I want to initialize or set the value of a text field with the value from the URL param. How is it done?

    Thanks.

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    41
    Answers
    5
    Vote Rating
    9
      0  

    Default

    Read the query string
    var qs = Ext.Object.fromQueryString(window.location.search.substring(1));

    qs.id = Name of the value in the query string

    Ext.form.field.Text.setValue( qs.id ) //Set the text box

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •