artdocent Posted September 9, 2011 Report Share Posted September 9, 2011 Is it possible to combine the results of drop downs? When I use var x = document.getElementById("EditRecordFieldName1").value; var y = document.getElementById("EditRecordFieldName2").value; var bothnames = x + y; and the input types are set to TEXT, I get the result I want. If I change it to a drop down that references a look-up table then I get no result. Is there a different way to access the value? Thanks!! Quote Link to comment Share on other sites More sharing options...
artdocent Posted September 9, 2011 Author Report Share Posted September 9, 2011 I figured it out... the original var x = document.getElementByID("EditRecordName1").value; the correct format var x = document.getElementsByName("EditRecordName1")[0].value; Added an /s/ to element and changed /ID/ to /Name/ and added at the end [0]. Not sure what the [0] actually means, but it works! Quote Link to comment Share on other sites More sharing options...
bahar_vm Posted September 13, 2011 Report Share Posted September 13, 2011 If you are wondering what [0] is for: The document.getElementsByName will return an array of all dropdowns in the document called for example EditRecordName1 so to refer to the dropdown element you should use [0] which is the index referring to the first dropdown (although there is only one but still you should use [0]). Best, Bahar M. Quote Link to comment Share on other sites More sharing options...
Kurumi Posted May 13, 2019 Report Share Posted May 13, 2019 You could try the Calculated Value to get and combine the values of your Dropdown. Caspio introduced new features which you can find here: https://howto.caspio.com/release-notes/caspio-bridge-13-0/ This release includes a new feature, Calculated Values in Submission Forms. This allows you to generate calculations which you can use for your DataPage. Check these videos for more information: I hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.