Jump to content

How to refer to search fields in javascript?

Recommended Posts

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:


("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!

Link to comment
Share on other sites

  • 10 years later...
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


Hope that helps.


If you are using getElemnentsBy Name you should specify number of array element: document.getElementsByName("Value1_1")[0].value 


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...