Last modified by Agnease on 2026/06/16 17:18

From version 16.24
edited by Agnease
on 2026/06/16 16:34
Change comment: There is no comment for this version
To version 16.15
edited by Agnease
on 2026/05/28 08:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,7 +5,6 @@
5 5  
6 6   #set ($name = '')
7 7   #set ($email = '')
8 - #set ($contactWebSite = '')
9 9  
10 10   #foreach ($parameterName in $request.parameterNames)
11 11   #set ($propertyName = $parameterName.split('_0_')[1])
... ... @@ -13,16 +13,11 @@
13 13   #set ($name = $stringtool.trim($request.get($parameterName)))
14 14   #elseif ($propertyName == 'email')
15 15   #set ($email = $stringtool.trim($request.get($parameterName)))
16 - #elseif ($propertyName == 'contactWebsite')
17 - #set ($contactWebSite = $stringtool.trim($request.get($parameterName)))
18 18   #end
19 19   #end
20 20  
21 - #if ("$!contactWebSite.trim()" != '')
18 + #if ("$!name" == '' && "$!email" == '')
22 22   #set ($statusCode = 400)
23 - #set ($message = 'The request could not be sent. Please try again or contact Agnease by email.')
24 - #elseif ("$!name" == '' && "$!email" == '')
25 - #set ($statusCode = 400)
26 26   #set ($message = 'Please enter your name and email.')
27 27   #elseif ("$!name" == '')
28 28   #set ($statusCode = 400)
... ... @@ -105,17 +105,7 @@
105 105   #end
106 106   </dl>
107 107   <p class="xHint">* Your information will only be used to respond to this request.</p>
108 - ## Hidden fields to catch requests filled by bots.
109 - <div class="contact-hp-wrapper" aria-hidden="true">
110 - <label for="contactWebsite">Website</label>
111 - <input
112 - id="contactWebsite"
113 - type="text"
114 - name="contactWebsite"
115 - autocomplete="off"
116 - tabindex="-1"
117 - />
118 - </div>
102 + ##<p>Your information will only be used to respond to this request. See the Privacy Policy for details.</p>
119 119   <input id="contactSubmit" type="submit" class="btn btn-primary" value="Send my request">
120 120   </form>
121 121   #end
XWiki.StyleSheetExtension[0]
code
... ... @@ -66,11 +66,3 @@
66 66   color: @brand;
67 67   font-weight: 700;
68 68  }
69 -/* CSS for hidden field to identify requests filled by bots. */
70 -.contact-hp-wrapperss {
71 - position: absolute;
72 - left: -9999px;
73 - width: 1px;
74 - height: 1px;
75 - overflow: hidden;
76 -}