allansheth Posted August 19, 2008 Report Share Posted August 19, 2008 Does anyone know if it's possible to access field values within script tags within a HTML Block? For example is this possible within a HTML Block on a datapage? <script> document.write([@field:FIELDNAME]) </script> The above is just a simple example. In reality I want to do a conditional check using IF..THEN..ENDIF. Quote Link to comment Share on other sites More sharing options...
0 bahar_vm Posted August 20, 2008 Report Share Posted August 20, 2008 Hi Allan, Yes it is possible by calling the element. If it is a Web Form the field Ids are InsertRecordFIELDNAME so you could retrieve the value by the following code: document.getElementById(\"InsertRecordFIELDNAME\"); If it is a Search and Report details page, the field Id is EditRecordFIELDNAME so you could retrieve the value by the following code: document.getElementById(\"EditRecordFIELDNAME\"); You could also get more idea on how to use Java script with Caspio Bridge by looking at the library of Java Script solutions in the site at http://www.caspio.com/support/jssolution.asp Best, Bahar M. Quote Link to comment Share on other sites More sharing options...
0 allansheth Posted August 20, 2008 Author Report Share Posted August 20, 2008 Thanks Bahar. I'll check out the examples as well & bone-up on my javascript On a separate topic (one that I posted earlier but got no response to) is there a way to populate a local recordset (ADO, XML, etc?) using web services? I am completely new to WS but imagine that connecting to and retrieving a recordset is pretty universal. I mean there is probably a universal method that works with any caspio account, with a few minor changes. If so can I get a sample code snippet? Quote Link to comment Share on other sites More sharing options...
0 AtayBalunbalunan Posted April 25, 2019 Report Share Posted April 25, 2019 Here is a JS guide for referencing Caspio Form Elements: Quote Link to comment Share on other sites More sharing options...
Question
allansheth
Does anyone know if it's possible to access field values within script tags within a HTML Block?
For example is this possible within a HTML Block on a datapage?
The above is just a simple example. In reality I want to do a conditional check using IF..THEN..ENDIF.
Link to comment
Share on other sites
3 answers 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.