Issue Bug Closed

#89260COA_INT/USER_INT in Ext:form TS formDefinitionOverrides not renders

Sören Wachsmuth 09/25/19, 09:45 updated 08/07/24, 11:34

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.