3 Replies Latest reply on May 15, 2013 4:16 PM by kfroling

    All 4 Combo Boxes in Forms is showing the same value for each drop down

    kfroling

      //-------------------------------------------------------------

      //-----------------Do not edit the XML tags--------------------

      //-------------------------------------------------------------

       

       

      //<Document-Level>

      //<ACRO_source>SetFieldValue</ACRO_source>

      //<ACRO_script>

      /*********** belongs to: Document-Level:SetFieldValue ***********/

       

       

      var Data1 = { "Adaptable":{ text: "Adapts to change, open to new ideas, takes on new responsibilities, handles pressure, adjusts plans to meet changing needs, acts on opportunities, and practices self-development."},

                       "Communication":{ text: "Communicates well verbally and in writing, shares information and ideas, asks clarifying questions, actively listens, flexible and open to other viewpoints, manages distractions and interruptions, negotiates effectively." },

                          "Computer and Technical":{ text: "Skilled in the use of computers, adapts to new technology, keeps abreast of changes, learns new programs quickly, uses computers to improve productivity. Understands specialty equipment, technical resource for others, follows technology practices and standards." },

              "Customer Service":{ text: "Builds customer confidence, committed to customer satisfaction, sets achievable customer expectations, assumes responsibility for solving customer problems. Positively represents that station by communicating pleasantly and professionally."},

              "Dependable":{ text: "Meets commitments, works independently, accepts accountability, sets personal standards, stays focused under pressure, meets attendance/punctuality requirements."

      },

      "Innovation":{ text:"Creative, generates new ideas, challenges the status quo, takes risks, encourages innovation, solves problems creatively and efficiently."

      },

      "Interpersonal":{ text:"Builds strong relationships, open-minded, negotiates effectively, ability to compromise, shows empathy. Ability to positively influence others. Diffuses conflict before it starts, finds causes of and solutions to problems, handles difficult people, communicates difficult messages professionally."},

       

       

      "Leadership":{ text: "Leads through change and adversity, makes the tough call when needed, builds consensus when appropriate. Engages employees and convinces them to act. Keeps team accountable for actions. Provides feedback and coaching, rewards hard work, takes mentoring role, challenges and develops others, accepts mistakes, provides visibility/opportunity."},

       

       

      "Organizational Knowledge":{ text: "Builds relationships with PBS and member stations, understands the market and can predict change, advocates for the station in the community, offers competitive technical needs, understands station history, supports mission/values, keeps abreast of industry standards and competition. Offers strategic planning to ward off internal and external threats."},

       

       

      "Productivity": { text:"Manages a fair workload, volunteers for additional work, prioritizes well. Keeps information organized and accessible, works systematically/efficiently, manages time well. Shows energy and sense of urgency, meets deadlines."},

       

       

      "Quality": { text:"Accurate and efficient, detail-oriented, committed to excellence, looks for improvements continuously, monitors quality levels, finds root cause of quality problems, owns/acts on quality problems."},

       

       

      "Teamwork": { text:"Promotes a team atmosphere and mutual respect, meets all team deadlines and responsibilities, turns team diversity into an advantage, works for consensus, acknowledges unique team talents, welcomes newcomers, and values team opinion. Always willing to help colleagues from all departments."},

      "                                     ": {text: " "}};

      function SetFieldValues(cBox1only)

      {

        this.getField("Strength1").value = Data1[cBox1only].text;

       

       

        this.getField("Strength2").value = Data1[cBox1only].text;

       

       

        this.getField("Strength3").value = Data1[cBox1only].text;

       

       

        this.getField("Strength4").value = Data1[cBox1only].text;

      }

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      //</ACRO_script>

      //</Document-Level>

       

       

      //<AcroForm>

      //<ACRO_source>Combo Box1:Keystroke</ACRO_source>

      //<ACRO_script>

      /*********** belongs to: AcroForm:Combo Box1:Keystroke ***********/

       

       

       

       

      if( event.willCommit ) {

          if(event.value == "") this.resetForm(["Strength1"]); else SetFieldValues(event.value);

      }

       

       

       

       

       

       

      //</ACRO_script>

      //</AcroForm>

       

       

      //<AcroForm>

      //<ACRO_source>Combo Box2:Keystroke</ACRO_source>

      //<ACRO_script>

      /*********** belongs to: AcroForm:Combo Box2:Keystroke ***********/

       

       

       

       

      if( event.willCommit ) {

          if(event.value == "") this.resetForm(["Strength1"]); else SetFieldValues(event.value);

      }

       

       

       

       

       

       

      //</ACRO_script>

      //</AcroForm>

       

       

      //<AcroForm>

      //<ACRO_source>Combo Box3:Keystroke</ACRO_source>

      //<ACRO_script>

      /*********** belongs to: AcroForm:Combo Box3:Keystroke ***********/

       

       

       

       

      if( event.willCommit ) {

          if(event.value == "") this.resetForm(["Strength1"]); else SetFieldValues(event.value);

      }

       

       

       

       

       

       

      //</ACRO_script>

      //</AcroForm>

       

       

      //<AcroForm>

      //<ACRO_source>Combo Box4:Keystroke</ACRO_source>

      //<ACRO_script>

      /*********** belongs to: AcroForm:Combo Box4:Keystroke ***********/

       

       

       

       

      if( event.willCommit ) {

          if(event.value == "") this.resetForm(["Strength1"]); else SetFieldValues(event.value);

      }

       

       

       

       

       

       

      //</ACRO_script>

      //</AcroForm>