anonymous3009 Posted July 27, 2009 Report Share Posted July 27, 2009 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 Quote Link to comment Share on other sites More sharing options...
0 anonymous3009 Posted July 28, 2009 Author Report Share Posted July 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted December 30, 2018 Report Share Posted December 30, 2018 Hi @anonymous3009, You can hide fields if empty without using JavaScript. On the Advanced tab, check Hide field if blank. Hope this helps. Regards, kristina Quote Link to comment Share on other sites More sharing options...
Question
anonymous3009
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
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.