Search the Community
Showing results for tags 'array'.
-
I have a script forcing numeric characters only in a couple fields (thanks May Music). <script> function isNumberKey(evt){ var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } document.getElementById('InsertRecordFIELD1').onkeypress =isNumberKey; </script> I had several fields like this so I cheated and created one script for each FIELDNAME (I know, I know, Im still learning :^). How could I combine all fields into that one script above? I tried this but it didnt work: document.getElementById('InsertRecordFIELD1','InsertRecordFIELD2','InsertRecordFIELD3')
-
How to enable multi select for more than one fields on submission page
- 1 reply
-
- array
- multiselect array
- (and 3 more)
-
Hi. I need to collect data from several different drop-downs, then combine the results into a single array in my data table. How would I do that? Example: If I collect 5 as the value for dropdown_1, and 3 for the value of dropdown_2, and 4 for the value of dropdown_3, I would need to be able to use that to create an array in another field (dropdown_values) such as: 5, 3, 4 I'm guessing this is a javascript thing. Any idea how to do that? Thanks for any help.