Changes for page Registration
on 2012/05/27 09:57
on 2012/11/04 04:41
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -232,7 +232,7 @@ 232 232 }) 233 233 #set($discard = $fields.add($field)) 234 234 ## 235 -# *##Uncomment this code to see an example of how you can easily add a field to the registration page235 +## Uncomment this code to see an example of how you can easily add a field to the registration page 236 236 ## Note: The user's favorite color is not saved anywhere, see above for information on how to save it. 237 237 #set($field = 238 238 {'name' : 'favorite_color', ... ... @@ -263,27 +263,7 @@ 263 263 ## will save the document as long as the user who last saved this registration page has programming rights. 264 264 $userDoc.saveWithProgrammingRights("Saved favorite color from registration form.") 265 265 #end 266 -## *### 267 -## Are you a spammer? 268 -#set($field = 269 - {'name' : 'vernis_barmaid_name', 270 - 'label' : 'What is the name of the barmaid of Vernis?', 271 - 'params' : { 272 - 'type' : 'text', 273 - 'size' : '60' 274 - }, 275 - 'validate' : { 276 - 'mandatory' : { 277 - 'failureMessage' : $msg.get('core.validation.required.message') 278 - }, 279 - 'regex' : { 280 - 'pattern' : '/^[Ss][Hh][Ee][Nn][Aa]$/i', 281 - 'failureMessage' : 'That is incorrect. Please try again.' 282 - }, 283 - } 284 - }) 285 -#set($discard = $fields.add($field)) 286 -## 266 + 287 287 ## To disable the captcha on this page, comment out the next two entries. 288 288 ## The captcha image, not an input field but still defined the same way. 289 289 #if($captchaservice