[TYPO3-english] Powermail prefill field with POST variable?

Sebastiaan de Jonge szebi.eger at gmail.com
Mon Mar 15 13:18:01 CET 2010


Hi,

Unfortunately only one of two is accepted. So mixing GET and POST
parameters will set the GET parameters to overrule the POST ones.
Making your value probably empty. We also can't use something else
other than GPvar like _POST or _GET.. Can't think of any quick option
to avoid this.

Sebastiaan de Jonge
http://sebastiaandejonge.com

On Mon, Mar 15, 2010 at 10:42 AM, Brian Bendtsen <bb at bellevuevej.dk> wrote:
> Sebastiaan de Jonge skrev:
>>
>> Hey,
>>
>> Please refer to the manual for this:
>>
>> http://typo3.org/documentation/document-library/extension-manuals/powermail/1.5.3/view/1/10/#id2508066
>>
>> Proper syntax in your case would be:
>>
>> plugin.tx_powermail_pi1 {
>>  prefill {
>>    uid8 = TEXT
>>    uid8.data = GPvar:tx_myext_pi1|nameofinputfield
>>    uid8.htmlSpecialChars  = 1
>>  }
>> }
>>
>> Regards,
>>
>> Sebastiaan de Jonge
>> http://sebastiaandejonge.com
>>
>> On Mon, Mar 15, 2010 at 9:39 AM, Brian Bendtsen <bb at bellevuevej.dk> wrote:
>>>
>>> Hi
>>>
>>> I want to prefill a powermail field with a POST variable from a form. Is
>>> this possible or can you only prefill field with value from querystring?
>>>
>>> My ts looks something like this:
>>>
>>> plugin.tx_powermail_pi1 {
>>> prefill {
>>> uid8 = TEXT
>>> uid8.data = GP:tx_myext_pi1[nameofinputfield]
>>> uid8.htmlSpecialChars = 1
>>> }
>>> }
>>>
>>> /BB
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>
> Hi
>
> I tried both syntaxes but it only works with querystrings
>
> If I take my URL and append like this:
> http://www.mysite.com/index.php?id=1&tx_myext_pi1[nameofinputfield] the
> field is prefilled
>
> But the value is send via POST from a form
>
> /BB
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Kind regards,
Sebastiaan de Jonge


More information about the TYPO3-english mailing list