Edit grid grab the selected row value and display it in a textbox

i have an edit grid one of the column is a dropdown (users will choose available options), after theri choice selction i want to display that value in a textbox.


I have the following javascript code in the text box i want to display the selected option.

image

i think in my javascript code mI am not referring the data.fieldkey correctly.

when i inspect the form center in the browser the field key of the dopdown is the name which i assume is the field key reference is displayed like this:

Please advice

@Lerato_Tsoela

Usually in JavaScript to get the selected value we write as below

var dropdown = document.getElementById(“etuwfqc-reason”);
var SelectedValue = dropdown.value;

Console.Log(SelectedValue

Check if you are able to get the data.transactionReason.reason.Value ?

Thanks,
Srini

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.