Project

General

Profile

Actions

Bug #35015

closed

Field name allows space

Added by Rik Willems about 12 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2012-03-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The field name input field in the wizard is not checked for space characters. When you have a space in the field name the form doesn't work properly. On a required check the previous input can't be filled in the new form.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #28605: Default input field name attributeClosed2011-07-31

Actions
Related to TYPO3 Core - Bug #36950: new form content element: input of OPTIONS >> ATTRIBUTES PROPERTIES >> NAME for a specific form element should be validatedClosed2012-05-08

Actions
Actions #1

Updated by Jigal van Hemert about 12 years ago

  • Status changed from New to Needs Feedback

Can't reproduce this. If I use a field name with a space (e.g. "full name") the resulting HTML form will have a hyphen instead of a space ( e.g. <input id="field-3" name="tx_form[full-name]" type="text"/> ). The check for a field being required works as expected.

Can you put the form definition in this issue? That would make it a bit easier to test.

Actions #2

Updated by Rik Willems about 12 years ago

Hi Jigal,

I jumped to conclusions too quickly. Like you say the field name doesn't have a space, but a dash.
But, use the definition below and try to fill the name and an invalid email. Now, the name field remains empty while the email field gets refilled.

prefix = tx_form
confirmation = 1
postProcessor {
    1 = mail
    1 {
        recipientEmail = 
        senderEmail = 
    }
}
10 = TEXTLINE
10 {
    name = uw naam
    label {
        value = Uw naam
    }
}
20 = TEXTLINE
20 {
    name = Bedrijfsnaam
    label {
        value = Bedrijfsnaam
    }
}
30 = TEXTAREA
30 {
    cols = 39
    rows = 5
    name = Uw_bericht
    label {
        value = Uw bericht
    }
}
40 = SELECT
40 {
    name = Selectieveld
    label {
        value = Selectieveld (test)
    }
    10 = OPTION
    10 {
        data = Option 1
    }
    20 = OPTION
    20 {
        data = Option 2
    }
    30 = OPTION
    30 {
        data = Option 3
    }
}
50 = SUBMIT
50 {
    name = 6
    value = Verzenden
}
rules {
    1 = required
    1 {
        breakOnError = 
        showMessage = 
        message = Verplicht veld
        error = Dit is een verplicht veld.
        element = uw naam
    }
    2 = email
    2 {
        breakOnError = 
        showMessage = 
        message = (naam@domein.nl)
        error = Dit is geen geldig e-mailadres.
        element = Bedrijfsnaam
    }
    3 = required
    3 {
        breakOnError = 
        showMessage = 
        message = Verplicht veld
        error = Dit is een verplicht veld.
        element = Uw_bericht
    }
    4 = required
    4 {
        breakOnError = 
        showMessage = 
        message = Verplicht veld
        error = Dit is een verplicht veld.
        element = Selectieveld
    }
}

Actions #3

Updated by Alexander Opitz almost 11 years ago

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.7 or 6.1)?

Actions #4

Updated by Jigal van Hemert almost 11 years ago

  • Status changed from Needs Feedback to Accepted

Confirmed with the setup in this issue.

Actions #5

Updated by Mathias Schreiber over 9 years ago

  • Status changed from Accepted to Closed
  • Is Regression set to No

Topic dupe of #36950, will continue there

Actions #6

Updated by Björn Jacob almost 9 years ago

  • Category changed from Form Framework to 1602
Actions #7

Updated by Björn Jacob about 8 years ago

  • Category changed from 1602 to Form Framework
Actions

Also available in: Atom PDF