Gossamer Forum
Home : Products : Links 2.0 : Customization :

Mandatory Check Box

Quote Reply
Mandatory Check Box
Can someone tell me how I could add a mandatory check box (signifying they read terms of agreement) to the add URL page?



Cheers,



mic
Quote Reply
Re: [mickey] Mandatory Check Box In reply to
Mic,

Found this via another forum. Never tried it and it requires Java. It disables the submit button until you agree to the terms

http://www.dynamicdrive.com/...dex16/acceptterm.htm

Piers
Quote Reply
Re: [mickey] Mandatory Check Box In reply to
Just tossin' this out as possibilty, not sure how/if it would work.

In the add.cgi, add some code that would be like:

if ($agree eq "")
&site_html_add_failure ("You must agree to terms of service.")

And the checkbox would be be named 'agree'

This is just a starting point... I would rather do stuff with perl than java. If you need more help, I'll put my thinkin' cap on an see what smokes!Unsure


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Mandatory Check Box In reply to
Another thought: use this mod http://cgi-resource.co.uk/pages/addconfirm.shtml and, instead of using the <%details%> tag in the new template, make that your terms of service by printing the HTML, instead of the tag. So, a person would click 'add resource,' then insert their data in the form, click add, then be taken to the tos page, where you could display your tos, and have the button labeled 'agree' so that they at least had a chance to read the material and say they read it before final submission. Sounds easier...


Leonard
aka PerlFlunkie
Quote Reply
Re: [mickey] Mandatory Check Box In reply to
jeeeeessss, I just want a check box man Smile



A took a look at the javascript, not java, page you sent me to. I used it for anthoer site nd will try it on the links 2 template as well. I worked??



Mic
Post deleted by mickey In reply to