Will Rossiter
e8e41826da
Add getEditableField() helper
2014-08-11 11:12:00 +12:00
Will Rossiter
23963e2a47
FIX: disable jquery.validation with date fields
...
Inconsistent with date locale formats.
2014-08-11 11:09:31 +12:00
James Ayers
0f90ce9596
Improved FieldEditor to dynamically get the class for EditableOptions
2014-08-06 15:23:51 +12:00
Will Rossiter
42932ea47f
Add flags to configure use of cookies.
...
Adds 2 new flags to the CMS:
- DisableCsrfSecurityToken
- DisableAuthenicatedFinishAction
DisableAuthenicatedFinishAction disables the session check on the finish completed action as this normally validates the user correctly posted a form. This page is normally just basic content so requiring a session cookie is sometimes a hassle.
DisableCsrfSecurityToken allows security token to not be added to the form. Normally acceptable as forms don't usually alter the state of the database.
2014-07-27 20:51:23 +12:00
Will Rossiter
5568ee7875
Fix CheckboxGroupField validation ( Fixes #209 )
2014-07-25 14:53:13 +12:00
mikeyc7m
386eb363ad
Use numericfield for EditableNumericField
...
Add support for minimum and maximum values
2014-07-24 21:39:07 +12:00
Liongold
dbb68258c5
Extra Space at line 1018
...
When a user chose the Plain Text option, the first field would have a blank space preceding the field name.
2014-07-12 17:52:16 +02:00
Will Rossiter
c77830bd2f
Pass submission to finished action.
2014-07-12 09:43:52 +12:00
alex-dna
248ff61ebe
Update UserDefinedForm.php
...
Add updateAfterProcess hook
2014-07-09 16:32:10 +12:00
Will Rossiter
a9aefe38ea
Add onPopulateFromPostData extension hook
2014-07-09 11:55:54 +12:00
Will Rossiter
73cfcc6791
Correct variable name ( Fixes #206 )
2014-07-06 17:50:21 +12:00
Will Rossiter
29d59693ac
Fetch permissions from the parent field ( Fixes #218 )
2014-07-06 17:35:46 +12:00
Jean Spiteri
fead9d00c6
Implementing the Dynamic Subject feature
2014-07-06 17:33:50 +12:00
Will Rossiter
2767558ec8
Add SubmittedFormField::onPopulationFromField extension hook
2014-07-06 17:03:13 +12:00
Will Rossiter
817b80412d
Merge pull request #202 from icecaster/patch-3
...
Fixed redirect url generation to work without trailing slashes
2014-07-06 16:52:21 +12:00
Will Rossiter
8c33896798
Merge pull request #191 from silverstripe-rebelalliance/inputVars
...
NEW: Add a check + error message if input vars is exceded
2014-07-06 16:07:33 +12:00
Will Rossiter
c4fe6beca5
Fix escaping of newline's in emails ( Fixes #217 )
2014-06-20 14:08:17 +12:00
Damian Mooyman
b7429910d5
API Support bulk editing tools if available
2014-06-18 13:10:31 +12:00
Damian Mooyman
5e0b7fdf7a
Updated jquery validate plugin (dist files only)
...
Cleanup of validation script. Refactor into template to allow customisation of validation.
Explicitly set error element to 'span' as per new jquery-validate support
[ref: CWPBUG-110]
2014-05-22 10:34:11 +12:00
Will Rossiter
bce1da2d71
Merge pull request #210 from Focus-Flow/require-localized-validator-messages-and-methods
...
Require localization files for validator
2014-05-15 10:16:24 +01:00
Jyrki Lilja
5689afb6b4
Require localization files for validator
2014-05-15 10:08:20 +03:00
Will Rossiter
b54e7fa4c6
Correct location for getValueFromData()
2014-04-25 09:53:45 -04:00
Will Rossiter
cbeb7a82e8
FIX: field validation
2014-04-22 16:46:57 -07:00
Tim
3f7c57dcbf
Fixed redirect url generation to work without trailing slashes
...
fix url redirect generation,
using action parameter on $this->Link() to pass 'complete' action
to stop relying on trailing slashes.
2014-04-15 12:10:32 +12:00
Kirk Mayo
d5e50a9802
NEW: Allow form submission when tokens are disabled
2014-02-27 12:36:12 +13:00
Kirk Mayo
53b306a434
NEW: Add a check + error message if input vars is exceded
2014-02-21 14:19:14 +13:00
Kirk Mayo
0f647009fa
BUG: Do not add a default message for numeric and email fields
...
BUG: Corrected classname to use right object
2014-02-12 12:45:49 +13:00
Kirk Mayo
85c1f52c45
BUG: Fixes #189 default error message being shown
2014-02-12 12:14:56 +13:00
Kirk Mayo
be573dcd3c
NEW: Set MinLength and MaxLength to numeric fields
...
BUG: replaced spaces with tabs to meet coding conventions
2014-02-11 10:31:56 +13:00
Kirk Mayo
938d2059fa
NEW: Added a numeric field and associated png
...
NEW: Setup translations for number field
NEW: extend fromEditableTextfield use number class
2014-02-11 08:59:43 +13:00
Will Rossiter
f90b997c29
Add updateEmailData hook
2014-02-03 12:10:44 +13:00
mikeyc7m
19afd18c26
Update FieldEditor.php
...
The EditableMultipleOptionField is being exposed in the form builder, when it is added to the form the page dies! It needs to be excluded.
2014-01-31 09:37:09 +11:00
Kirk Mayo
54b4dca799
BUG: Fixing unit tests for form processing and adding unit test to check if form has been completed
2014-01-06 15:15:01 +13:00
Kirk Mayo
41b6e57e4c
Merge branch 'master' of git://github.com/silverstripe/silverstripe-userforms into issue69
2014-01-06 13:37:55 +13:00
Will Rossiter
07c159cd61
NEW Allow EditableFileField to define destination folder. ( Fixes #20 , #177 )
2013-12-20 21:08:00 +13:00
Kirk Mayo
4c88f1acf9
BUG: Fixes #69 by adding a check to see if the form has been processed
2013-12-19 15:56:53 +13:00
Nik Rolls
da6a624b6c
- Added calls to Object#extend in EditableFormField's getFieldConfiguration and getFieldValidationOptions
...
- Added tests for extensions on EditableFormField
2013-12-05 19:08:08 +13:00
Jyrki Lilja
79682e7627
Fix #175 . Bring back support checking for radio field values.
2013-12-03 20:10:17 +13:00
Sean Harvey
425881257b
BUG Performance improvements of SubmittedFormField queries.
...
When there are a lot of SubmittedForm records the UserDefinedForm
page takes a long time to load in the CMS, and oftens exceeds
the PHP memory limit well beyond 128M.
Previously UserDefinedForm::getCMSFields() would build a list of
name => value from all SubmittedFormField records, but it would
do this twice, once in getCMSFields() and another time in
UserFormsGridFieldFilterHeader. It would also use the full ORM
to build this list, when all it needs is a map of the Name
and Value columns.
This fixes that to build the columns once in getCMSFields() using
DB::query() and it'll pass those columns along to
UserFormsGridFieldFilterHeader as well so it doesn't do it twice.
2013-11-13 17:08:49 +13:00
Jyrki Lilja
27d4476dec
Add support for defining clear button text.
...
A new translations to be added:
- UserDefinedForm.CLEARBUTTON
- UserDefinedForm.TEXTONCLEAR
2013-11-11 15:32:44 +02:00
Ingo Schommer
323f66ad74
Fixed globalisation for field list
2013-11-06 15:05:31 +01:00
Mike Penhall
a6400dcfd0
Update FieldEditor.php
2013-11-04 16:08:32 +13:00
Mike Penhall
06ad657f6c
Escaped addField() query to work with Postgres
...
I was getting a warning in the CMS with a Postgres database due to the fields on lines 191 - 193 not being double quoted.
2013-11-01 16:08:15 +13:00
Ingo Schommer
aa0f8dbc7b
Transifex support, js globalisation
2013-10-30 14:31:51 +01:00
Will Rossiter
f66c3c340a
Merge pull request #168 from danieldia/patch-1
...
FIX: Ensure that the data-add-url single quotes are not processed by join_links
2013-10-17 00:25:12 -07:00
danieldia
bbe1c5fb6a
FIX: Ensured that the data-add-url single quotes are not processed by join_links
...
Due to the fact that the last bracket meant that join_links was actually sent URL + ' (eg; http://myurl.com ' ), this caused problems when the quote was getting escaped - and actually prevented users from adding form fields in the CMS, with a 500. This fix ensures the closing quote is not processed by join_links.
2013-10-17 16:05:04 +13:00
Kirk Mayo
99de36afef
BUG: Fixes #166 for SQL server which does not like empty strings as numerics
2013-10-17 15:01:41 +13:00
Will Rossiter
099e91807b
Merge pull request #160 from hafriedlander/fix/filefield
...
FIX submitted fieldfields in submission details in CMS
2013-09-04 17:14:06 -07:00
Hamish Friedlander
0c39fad116
FIX submitted fieldfields in submission details in CMS
...
If you had a EditableFileField in your userform, the submission table in
the CMS would just say "Array" rather than link to the file, making it fairly
useless
2013-09-05 09:46:38 +12:00
Will Rossiter
9b134f1a78
FIX: Check security ID on admin non form links ( Fixes #158 )
2013-09-04 23:35:01 +12:00