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
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.
Question
prashshanbhag
Hi,
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;
alert(name);
******************
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.