Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Doolysw's Achievements


Newbie (1/14)



  1. I have a form in which people will type in their address. I want to take that address and compare it to an existing address database, and not allow them to submit if that address does not exist in that database. So if you type in 123 Test St and 123 Test St does not appear in the existing database of addresses, I want it to not allow submission. I know that small things might throw this off, even caps or slight variations in spelling but I want it to throw an error if anything doesn't match.
  2. I've tried that, but all of the fields on my details page are display only, and conditional formatting rules do not work with display only fields unfortunately.
  3. I updated the script a bit with some stuff I've read, but it still doesn't work. New footer script below. <script type= "text/javascript"> var fireplan= document.getElementById("FIRE_PLAN").value; if (fireplan == "No") { document.getElementById("firesection").style.display = "none"; } </script> Any help would be most appreciated.
  4. I am trying to hide an element on a details page, but I can't quite figure it out. I have a yes or no field in my table and if the field is yes I want to display the element, and if the field is no, I want to hide the element. I feel like I'm doing something wrong in either the way I'm setting the variable or the way I'm doing my if statement. It could also be that the field is not passing a yes or no, but something else like a 1 and 0. Could some one look at the code and help me out? FIRE_PLAN is the yes or no variable in my table. Right now it hides it no matter what the FIRE_PLAN field is set to. Just FYI, FIRE_PLAN is a display only field which means I can't just set a rule to hide the element. I have this in an html box on my details page <div id="firesection"><a href="[@field:FIRE_PLAN_URL]"><img alt="" src="http://censoredurl.com/fire.png" style="width: 90px; height: 90px;" /></a><br /> View fire plan for this address</div> In the footer I have the following code <script> var fireplan = document.getElementById("FIRE_PLAN"); if(fireplan == "Yes") { document.getElementById('firesection').style.display = "block"; } else { document.getElementById('firesection').style.display = "none"; } </script>
  • Create New...