vdb@telenet.be Posted May 18, 2010 Report Share Posted May 18, 2010 How to keep out record lines in the shopping basket with certain value (examp. Here:leeg=empty)? (This is a details page) Thank you. Bart Quote Link to comment Share on other sites More sharing options...
bahar_vm Posted May 18, 2010 Report Share Posted May 18, 2010 Hi Bart, I am not sure if I fully understand what you are trying to achieve. Is that you are trying to hide the fields on the details page based on their value? If so you can use a Java Script to check for the value and hide/display accordingly. To see how you can use Java Scripts in Caspio DataPages please take a look at the samples at viewforum.php?f=14. Best, Bahar M. Quote Link to comment Share on other sites More sharing options...
vdb@telenet.be Posted May 23, 2010 Author Report Share Posted May 23, 2010 Hallo Bahar, thank you, for your reply. I still can not "none" display field elements with javascript. This is in the details page and i put it in the footer part. document.getElementById("[@field:GerkeuzeVlees1]").style.display="none"; Thank you, Bart Quote Link to comment Share on other sites More sharing options...
bahar_vm Posted June 4, 2010 Report Share Posted June 4, 2010 Hi Bart, To hide an element in details page you need to call it by its id and the id of elements on details page are prefixed with EditRecord plus field name. So your code should look like: document.getElementById("[@EditRecordFIELDNAME]").style.display="none"; Replace the FIELDNAME with your actual field name. Best, Bahar M. 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.