I am building a basic app that takes input from text fields and a list, stores them as variables, and then enters them into an equation. When I click a button, the result is displayed in a text field. I’m running into 2 separate issues. The first is I cannot get the value from the list. The second is when I try to do basic math to make sure I’m on the right track, it just show the values one after another. I have my variables listed in my project_custom file. For each text field I have an On Change script of : “length1 = $(‘#m1-flowcalc-textField4’).val();”
There are 3 text fields and a menu list, each with different variables and specifying the appropriate field. The on click code is below.
var textBox = document.getElementById(“m1-flowcalc-textField7”);
var result1 =size1 + pres1 + length1 + flow1;
textBox.value = result1
For the list box my code is : “size1 = $(‘#m1-flowcalc-selectListMenu1’).val();” It doesn’t retrieve the value that I have entered.
Thanks for your help,
Doug