0

Does anybody know whether it is possible to set the default value of any field of Powermail form with TypoScript (without creating a special TypoScript object field)?

2 Answers 2

2

Yes, it is possible. Use the TCAdefaults typoscript object in your page ts config.

TCAdefaults.tt_news.hidden = 0

This example makes tt_news entries not hidden. The format is

TCAdefaults.[table].[field] = [value]

and this works with everything that is inside a tca. So you can practically set defaults for any field in any table.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, but the question is about Powermail form !
Following the documentation, you can set that in the backend directly. What exactly is your use case?
For example, to fill a hidden field with Id, name, and email of FE user.
1

Setting value of hidden field is built-in in powermail, of course it works only with fe_users table.

When editing field you'll find it at the bottom of the properties: Fill out this field with fe_user field

If you need to use other fields from DB, you can configure them via ExtensionManager.

Edit:

There is mentioned in docs that's possible to prefill values with TS, I didn't test in, however looks, that's what are you need.

http://typo3.org/extension-manuals/powermail/1.4.14/view/1/10/#id1632010

1 Comment

Thanks, but I need TypoScript processing of the data, so the question is how to do it with TypoScript, to put any TSObject as default value of the field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.