RadioButton to ComboBox to TextBox---immediate commit issues
- July 8, 2021
- 2 replies
- 802 views
Hi Everyone...
Well, I think this one has me stumped, and I have attached two files: a) a conceptual diagram that shows how the form is designed to work and what parts are working, and b) the actual form.
It starts with the user selecting a RadioButton choice, that populates a ComboBox of choices. The ComboBox values will change depending upon what RadioButton is selected. The ComboBox will change a TextBox based upon what the user selected from the ComboBox list. The TextBox values are set by a function that will set the possible values base on the ComboBox item selected...so far, ALL of that works.
The issue is with the ComboBox Array setting the TextBox...
First Issue: It does not set the value immediately, and Second: the resulting value of the TextBox, while coming from the Array choice, is not accurate to the list of choices in the ComboBox.
I think the issue is with SetChoiceOneArrayValues()....called by the Combox Validation method...
function SetExmeptionFieldValue(cChoice) { if( WhichOne=="Choice1")
{ this.getField("txEventStatus").value = cChoice //just to tell me routine arrived
var ArrayData = { "Please select exemption class...":{ statement: "ChoiceList 1 Item 1", }, C1Item2:{ statement: "ChoiceList 1 Item 2", }, C1Item3 :{ statement: "ChoiceList 1 Item 3", }, C1Item4:{ statement: "ChoiceList 1 Item 4", }}; this.getField("txChoiceMessage").value = ArrayData[cChoice].statement; } else { this.getField("txChoiceMessage").value = "Setting Array values did not work, darn!";} }
Any guidance would be kindly appreciated.
