Set id and name in typo3 powermail form - typo3

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!

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.

Related

Typo3: How can i create and show custom content element (example: Email id, Phone number etc.)

I have contact persons' list and i want to display his detail(Email,Phone number,Address etc.)
Please give me simple example for the Address field.
I want functionality like the ACF(Advance custom filed plugin which provide in WordPress.
I am using Typo3 9.5.18 version.
I would use the extension tt_address https://extensions.typo3.org/extension/tt_address/.
Cheers,
Rachel
You can follow this:
How to create complicated content elements
or this:
How to create simple content elements
or the official documentation:
Documentation
Regardless what you choose, you need to be aware of the following: In order to create a custom content element you need time to understand how it works patience and do some experiments. Once you understand the process and create 5-10 elements, then all will come automatically to you :)
Best regards

Prefilled notes of Class attributes in Enterprise architect

is there a way to have prefilled attributes notes in enterprise architect?
It should be something like this scenario:
1) I create new attribute
2) Enterprise architect prefill note of attribute with predefined text
Something like template for attributes.
Thank you for any advice
I know this won't help directly this question.
Anyways you can achieve it through an external addin.
All you need to do is handle the EA_OnPreNewAttribute and EA_OnPostNewAttribute broadcast events .
This isn't quite what you're after but it is possible to create an Attribute stereotype in a Profile and add to this a Tag with an initial value set to what ever you want. When you create an attribute with this stereotype, this means your predefined text would appear in a tag-value for the attribute rather than the note. Not ideal, but might work for you.
You could also have a go at writing some JavaScript to do this as well (under Scripting in EA). You'd have to use the JS to navigate the repository structure, find the attributes in question, and update their note. I don't believe you can attach a script to a UI event, so I think you'd be stuck running this post-hoc rather than having the note auto-populate on attribute creation.

TYPO3 Powermail 2.x many forms and hidden fields

I am in a TYPO3 project with Powermail 2.x and there are different forms (created in the backend). Every form needs the same hidden fields, is tehre a way to create this needed fields once and use it in any form? Does someone know something similar or exactly something like this?
Thanks in advance!!
Based on my experience with powermail there is no option to add the fields from another form on the same page or from another page.
I would suggest to complete the first Powermail form with all required fields and then copy it. Once you copy the Powermail plugin element and paste it on another page, the included Powermail form and all fields are also copied.
It's not exactly what you were looking for, but simple and effective.

Adobe Muse - How to add validation checks in a Simple Form?

I am struggling with adding validation checks, e.g. only allow number input in Adobe Muse text input box. Also, how do you add a dropdown list on the simple contact form, e.g. options are Mr, Mrs, Miss? etcetera.
Please advise.
As far as I know Muse doesn't have a text attribute for validating text fields. But they do have a number field (https://adobe-muse.github.io/MuCowDocs/#h-number-) which should work for what you are talking about.
And yes, they also have drop-downs (https://adobe-muse.github.io/MuCowDocs/#h-list-).
Hope this helps!

Create a specific form in Drupal

I need to build a form where user can have an infinite number of identical fields, depending on the number which he entered in the previous field 'Number of steps'(for example).
Maybe someone have any idea?
I recommand you to check the Form API of Drupal and especially the #ajax property
Here is a great example on how to achieve what you need.