Actions
Bug #89260
closedCOA_INT/USER_INT in Ext:form TS formDefinitionOverrides not renders
Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-09-25
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Ext:Form, formDefinitionOverrides, COA_INT
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
Using formDefinitionOverrides to get POST Vars into the Form Extension.
Then process the uid to get the E-Mail Recipient.
lib.plugin.tx_form.getrecipient = COA_INT
lib.plugin.tx_form.getrecipient {
10 = TEXT
10{
value = xx@xx.xx
value.override.if.isTrue.data = GP:uid
value.override.data = GP:uid
value.override.wrap = {DB:tt_address:|:email}
value.override.insertData = 1
}
}
plugin.tx_form {
settings {
formDefinitionOverrides{
contactform{
renderables.0.renderables{
0{
defaultValue < lib.plugin.tx_form.getrecipient
}
}
}
}
}
}
This works so far, but the Problem is that it's cached, and when the UID is changed in the POST Vars the user is needed to flush the Browser Cache to get the new address.
When I try to use COA_INT instead of COA for the lib.plugin.tx_form.getrecipient the following error shows up:
<!--INT_SCRIPT.053f8a643d5892d69f7e657abe390b7c-->
Using USER_INT with a defiend function doesnt render either.
Updated by Mathias Brodala over 4 years ago
- Status changed from New to Closed
- Priority changed from Should have to Won't have this time
TypoScript overrides are not meant to be used for such complex tasks.
Please use the $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['initializeFormElement']
hook instead.
Actions