How to create a custom disclaimer form

Jan 8, 2013   //   by Simon J   //   Other  //  6 Comments
Not UsefulUseful (+1 rating, 1 votes)
Loading ... Loading ...

A number of clients have incorporated custom disclaimer pages before allowing their users access into Dekho.  The Dekho site over at the Western Australian Planning Commission  is a good example of this.   If end-users agree to the terms, they get into Dekho.  If they don’t, they get redirected onto another link.

If you have some basic HTML/Javascript/CSS skills (or know someone who does) this is a fairly straightforward task to achieve with Dekho.  There is nothing stopping you from taking a peek at how they did it over at WAPC.  More specifically, look at the two buttons on the page (lines 519-529) and how when you click disagree, it redirects you to another page, and if you click agree, it fires a new function within Dekho.jsp called agree (lines 418-432).

I spent some time today creating a simpler disclaimer for new visitors to Dekho.



  • This presents the users with a choice to accept/refuse the terms of use.
  • If they accept, they get access to Dekho (which loads up in the background)
  • If they refuse, they get re-directed to another URL.
  • If they click ‘Do not ask again’, they won’t be prompted again, assuming that they chose accept.

We have provided the tool on the downloads gallery, along with some notes on how to set it up.

The tool is not covered under the scope of support (as with any Javascript/HTML/CSS customisations) but we do welcome you to post questions/issues on Dekho Answers.

Perhaps if you don’t need a disclaimer, it might still be a good idea to let new users know a little more about your Dekho implementation with the help of an alert bar and a custom help page/video.

 

6 Comments

  • Hi Simon. Great addition. I’ve almost got a version running but am having trouble with the Style Sheet. Is the one included in the download the same ‘look’ as the one you have demo’d? Because it appears very differently. Im a style sheet noob so any help would be appreciated.

  • How different we talking? The sytles.css is here, but should be in the download as well?

    Im still taking baby steps with CSS myself. Its great fun until you check your results in other browsers.. Feel free to take this coversation over to Dekho Answers and include some screens/pastes of your CSS. Ill do my best to help.

  • I just think it’s not behaving properly with the reverse proxy actually – I’ll move over to the forum.

  • In my script, I am grabbing JQuery from the Google CDN. If fiddler looks like its having troubles grabbing JQuery, might be a simple fix to download a local copy of Jquery to sit alongside the tool.

  • Thanks, I’ll give that a try.

  • A number of clients have incorporated custom disclaimer pages before allowing their users access into Dekho. The Dekho site over at the Western Australian Planning Commission is a good example of this. If end-users agree to the terms, they get into Dekho. If they don’t, they get redirected onto another link.

Leave a comment


+ 1 = two