#89260COA_INT/USER_INT in Ext:form TS formDefinitionOverrides not renders
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Susanne Moog changed Sprint Focus Remote Sprint 11/17/19, 18:25
-
Mathias Brodala commented and changed status
NewClosed priorityShould haveWon't have this time 11/21/19, 16:48 -
Markus Timtner commented 08/07/24, 11:34
The afforementioned link is broken as of now, here is the curent one:
https://docs.typo3.org/c/typo3/cms-form/main/en-us/D/FrontendRendering/Index.html#apireference-frontendrendering-programmatically-commonapimethods-initializeformelement
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.