soccer Posted February 3, 2009 Report Share Posted February 3, 2009 On the Results page, I can refer to fields by appending either "EditRecord" or "InsertRecord" to the beginning of the field name. What is the equivalent naming convention in the Search form? Is it just appending "SearchRecord"? I've tried the basic script: document.forms[0].SearchRecordHome.onchange=copyteam; ("Home" being my field name) to call a function called copyteam but it is producing an error that SearchRecordHome is 'null or not an object'. Thank you! Quote Link to comment Share on other sites More sharing options...
bahar_vm Posted February 4, 2009 Report Share Posted February 4, 2009 Hello, You can see fields IDs by viewing the source code of the direct URL of the DataPage, so you need to hit deploy, select URL model and copy the URL, paste it in a browser and view the source, this way you can see all the elements IDs. Regards, Bahar M. Quote Link to comment Share on other sites More sharing options...
BaySunshine Posted April 8, 2019 Report Share Posted April 8, 2019 The fields in the Search form can be referred to as Value1_1, Value2_1, Value3_1 etc in the order they are displayed. So, to access Value_1, you can enter: document.getElementsByName("Value1_1").value or document.getElementByID("Value1_1").value Hope that helps. Regards, Quote Link to comment Share on other sites More sharing options...
George43 Posted April 9, 2019 Report Share Posted April 9, 2019 9 hours ago, BaySunshine said: The fields in the Search form can be referred to as Value1_1, Value2_1, Value3_1 etc in the order they are displayed. So, to access Value_1, you can enter: document.getElementsByName("Value1_1").value or document.getElementByID("Value1_1").value Hope that helps. Regards, If you are using getElemnentsBy Name you should specify number of array element: document.getElementsByName("Value1_1")[0].value Quote Link to comment Share on other sites More sharing options...
BaySunshine Posted April 16, 2019 Report Share Posted April 16, 2019 Hi @george43, Thanks for correction. I missed it. Yes, it should be document.getElementsByName("Value1_1")[0].value. 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.