1

I`m using Typo3 9.5 with powermail. I want to generate dynamic input fields, based to a selectfield. For example: "How many members you want to register?" Then you get a selectbox, where you can choose from 1 to 10. If you select 10, 9 further new input fields should appear.

How can I solve this? If I do it only with jquery, the input fields arent registered and dont get send to the recepient.

Is there a way to integrate dynamic input fields?

Zoe
  • 27,060
  • 21
  • 118
  • 148
WimDiesel
  • 65
  • 1
  • 9

2 Answers2

0

This should not be possible because it is a security risk. Everbody could inject code in this case an send them to TYPO3 / DB. But there is a extension "Powermail Condition" which can help you solving your problem: https://extensions.typo3.org/extension/powermail_cond/

Heinz Schilling
  • 2,177
  • 4
  • 18
  • 35
  • Thanks for your Feedback. I think youre right regarding send input to the database. I will create the special fields and control them via JavaScript. Many thanks. – WimDiesel May 17 '19 at 22:29
  • May you want to mark my answer as solution for your question? – Heinz Schilling Jun 11 '19 at 18:47
  • If the field is created via AJAX-Request, it wouldn't be a security issue. TYPO3 should have an AJAX handler to keep changes to the form it previously rendered. – Елин Й. Sep 06 '19 at 05:52
0

If it is a select box with a max amount of dynamic fields: Why not inserting all of them and change the view via javascript according to the selected value? If you want a dynamic Validation, you have to write that too, like: https://docs.typo3.org/typo3cms/extensions/powermail/ForDevelopers/WriteOwnValidators/ServersideValidation/Index.html

G-Agnes
  • 66
  • 8