Skip to main content
Participant
June 23, 2015
Question

Combing comboboxes. Export value empty

  • June 23, 2015
  • 1 reply
  • 1105 views

Dear all,

Yesterday I started to build a PFD form.

Combobox 1 (Units/company) :

myUnitValues = ["PCH", "TPE"];

On keystroke:

if( event.willCommit )

{

   if(event.value == "")

     this.getField("Unit");

   else

    SetFieldValues(event.value);

}

You can choice between two companies

Combobox 2 (Departments):

var DeptData = {PCH: ["NL Concern Communications","Accounting Europe (NL) ",

"NL Concern Communications",

This works fine, only my export value is empty after the change between the Units.

Textfield 1

In this text field I like to have my export value. This is the cost center of the department.

How can I add in this text field. When department = "NL Concern Communications" then value textfield="12.23.678"

Because my export value disappears after change in Combobox 1

This was working before I added combobox 1  

var cComboBox = "Combobox2";

var sComboBox = this.getField(cComboBox).value; 

event.value = sComboBox;

Can anyone tell me how I can use my text field to make the cost center visible. (read only field)

With kind regards

Mirjam 

This topic has been closed for replies.

1 reply

Participant
June 25, 2015

Solved.

The only thing that is not working perfect is the select combo box. In the form I need to switch twice with the selected value before the department list is changing.

Mirjam