kingardox
kingardox

Reputation: 127

Set id and name in typo3 powermail form

I am kinda new to typo3 and after 3h of looking for an answer I resign and hope someone of you can help me. So what I am trying to achieve is a hidden field in a powermail form with a certain id and name. I can add a hidden field in the backend but there is no option to set an id nor name. I guess it is somehow possible to do this with some typoscript but I couldn't find a way in the docs. The closest thing I read is this https://docs.typo3.org/typo3cms/extensions/powermail/ForDevelopers/AddNewFieldProperties/Index.html but this let me create a whole new template for a field as I understood. This is way too much as I only need to set the id and name for one field only.

I hope someone can help me. Thanks in advance!

Upvotes: 0

Views: 1101

Answers (1)

Alex Kellner
Alex Kellner

Reputation: 1309

If you want to add a field with a complete own name for some reasons, you could add a field of type HTML and add your input field as you want (see https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldHtml/Index.html). Of course powermail ignores this field in the createAction().

BTW: You wrote something about google. Are you sure google can handle fields in POST-requests? If not, you have to add the value as GET value in powermail. That must be done in the Form HTML-Partial.

Upvotes: 1

Related Questions