Jump to content
  • 0

Retreive Record in Search Form




I am trying to conditionally populate some html fields in a "Search and Report Form" based on data in my records. But for the life of me, I cant seem to figure out a way to retrieve the record data element.

The Data element I am retrieving from my record is "DealersUS_Company_name" and its available as a field in the report.

I tried something like this in the HTML section of my datapage


document.getElementById('biz-name').innerHTML= document.getElementById("EditRecordDealersUS_Company_name").value;


I also tried replacing "EditRecord" with "InsertRecord", but I just cant seem to retrieve the record!!

I know that innerHTML works in Caspio because I tried the following and it does display "My_Name" correctly in the h2 header!


document.getElementById('biz-name').innerHTML= "My_Name"


For debugging, I also tried this but dont get any alert.


var name = document.getElementById("InsertRecordDealersUS_Company_name").value;



Also replaced "InsertRecord" with "EditRecord"

What am I missing here??

Link to comment
Share on other sites

1 answer to this question

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.

Answer this question...

×   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...