Project

General

Profile

Actions

Bug #93762

closed

Case condition based on post params not working

Added by Bernhard Eckl over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2021-03-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In TYPO3 8 the following worked (condition for form framework to set a different receiver email address):

recipientAddress = CASE
recipientAddress {
key.data = GP:tx_form_formframework|kontakt_1|singleselect-1
default = TEXT
default.value =
1 = TEXT
1.value =
}

I tried the following in TYPO3 9 but nothing worked:

key.data = GP:tx_form_formframework|kontakt_1|singleselect-1
key.data = traverse(request.getParsedBody(), 'tx_form_formframework/kontakt_1/singleselect-1')
key.data = request.getParsedBody(), 'tx_form_formframework/kontakt_1-15509/singleselect-1')
key.data = request.getParsedBody(), 'tx_form_formframework/kontakt_1/singleselect-1')
key.data = (request.getParsedBody()['tx_form_formframework])[kontakt_1][singleselect-1']
key.data = (request.getParsedBody()['tx_form_formframework])[kontakt_1-15509][singleselect-1']

How to do that in TYPO3 9?

Actions #1

Updated by Bernhard Eckl over 3 years ago

My mistake, issue can be closed.

The following works:

key.data = GP : tx_form_formframework|kontakt_1-15509|singleselect-1

(Form framework adds the id (15509) since Version 9)

And as condition it would be:

[(request.getParsedBody()['tx_form_formframework])[kontakt_1-15509][singleselect-1'] == '2']

Actions #2

Updated by Oliver Hader over 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF