Jump to content

conditonal detailsview (shopping basket empty lines)


Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

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.

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

Loading...
×
×
  • Create New...