Jump to content
  • 0

Hidding fields with no data


anonymous3009

Question

Hello,

You can achieve this by adding JavaScript. You check the field value of file, it it is empty, you hide the field with something like this:

document.getElementById("file").style.display = "none";

For JavaScript syntax, here's a good resource with lots of examples http://www.w3schools.com/js/default.asp.

Hope this helps. Thanks,

SO

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello,

No, it doesn't matter if you add your JavaScript in the Header or the Footer. Now, for the second part of your question - you could do something like this:

//this is an example for the field AbandonReport only, do the similar for other fields you want //to check

field1= document.getElementById("AbandonReport").value

if (field1 = "")

{

document.getElementById("AbandonReport").style.display = "none";

}

Also, I believe Caspio offers project consultation to help you out/do the JavaScript for you. Here's the link I found for this - http://caspio.com/support/projectconsultation.asp.

Regards,

-SO

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

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