[CLOSED] Change background color of textfield, textarea, combobox after text change

Page 2 of 2 FirstFirst 12
  1. #11

    RE: [CLOSED] Change background color of textfield, textarea, combobox after text change

    Hi,

    Problem is that selected item for combo is setted after calling initFields function. Try to use the following

    1. Add FireSelectonload="true" for combo
    2. Add for combo
    <Listeners>
        <Select Handler="this.originalValue = this.getRawValue();this.loaded = true;" Delay="10" Single="true" />
    </Listeners>
    <CustomConfig>
        <ext:ConfigItem Name="loaded" Value="false" Mode="Raw"></ext:ConfigItem>
    </CustomConfig>
    3. Change checkFields function
    if(f.isFormField &amp;&amp; f.loaded !== false &amp;&amp; f.originalValue != f.getRawValue()){
  2. #12

    RE: [CLOSED] Change background color of textfield, textarea, combobox after text change

    Works :)

    Now, if you had a similar miracle for datefields...
  3. #13

    RE: [CLOSED] Change background color of textfield, textarea, combobox after text change

    Hi,

    DateField is same like Combo but change Select event by Render
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: Dec 29, 2011, 2:11 AM
  2. Dynamically change textfield background color
    By VALUELAB in forum 1.x Help
    Replies: 0
    Last Post: Mar 04, 2011, 4:50 PM
  3. [CLOSED] Select value of combobox on text change of textfield
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 08, 2009, 7:00 AM
  4. [CLOSED] Change background color of MultiSelect
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 30, 2009, 12:10 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions