close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Trying to hide a map until a value is entered into a search text box

Thread began 5/04/2014 8:43 pm by mrs | Last modified 5/05/2014 1:19 pm by Jason Byrnes | 594 views | 2 replies |


Trying to hide a map until a value is entered into a search text box

I've created a kind of postcode search where the user enters their postcode and the map display any records from my database, and it works well, however, I want to hide the map with a show if until the postcode text box has content in it.

I created the code for the form, the textfield and the submit button, and I asked the map to use the textfield (called postcode) to display the postcode centre when a search is performed. This is what I have.

<form action="distributor-postcode-map.php" method="post" name="postcodeform" id="postcodeform">
<label for="postcode">Text Field:</label>
<input type="text" name="postcode" id="postcode">
<input type="submit" name="postcodesubmit" id="postcodesubmit" value="Submit">

What I am struggling with is what I use to hide the map until a value has been entered as a search. For example, on another search I have used a session created by DataAssist Search to hide areas of a page when no value is present in the search, but in this instance I am having to do this myself and am struggling to get my head around it.

Do I need to create a session?

If so, what do I create a session from?

Any advice on what I can do and how will be greatly appreciated.


Sign in to reply to this post


Don't worry, I figured out that I could populate a session when the submit button is pressed.

I have it working as needed now.

Sign in to reply to this post

Jason ByrnesWebAssist

Ok. glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...