Bug #93762
closedCase condition based on post params not working
0%
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 = default@mail.com
1 = TEXT
1.value = another@mail.com
}
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?
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']