Skip to main content
stevenm8611492
Known Participant
October 20, 2016
Question

dropdown fill row from other field

  • October 20, 2016
  • 2 replies
  • 354 views

What am I doing wrong;

dropdown fill row from other field

var source = this.getField("SCP");

var myList = { "First Item":  { WMs1E_1: 15, MSI1_1: 12, MSL1_1: 24, MSE1_1: 50, MSES1_1_Hid: source.value, MSLd1_1: 1},

"second Item":  { WMs1E_1: 50, MSI1_1: 24, MSL1_1: 48, MSE1_1: 250, MSES1_1_Hid: 3, MSLd1_1: 4}};

I tried with source, "source" and ["source"] and source.value

do I do the event.willCommit with the SCP even though the SCP is not in the row?

if(event.willCommit){if(event.value == "") this.resetForm (["SCP", "WMs1E", "MSI1", "MSL1", "MSE1", "MSLd1", "MSES1_Hid"]);

else SetWeaponMissileOneFieldValues(event.value);

}

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
October 21, 2016

source.value is correct. What happens when you run the code?

stevenm8611492
Known Participant
October 24, 2016

Yes, that did work, thanks