Create own validators with Typo3 8LTS SYSEXT:form - forms

For a long time I used EXT:formhandler for custom forms. In formhandler it was very easy to build custom validators like:
Checkbox "phone" is checked, then input-field phone is required.
Can someone show me an example of this custom validator with the new SYSEXT:form in Typo3 8LTS with SYSEXT:form?
Thanks a lot.

Related

Custom fields for Powermail in TYPO3

I am working with powermail forms, where I need a custom multiselect powermail field.
Any idea how to configure the field?
I have added tx_powermail.flexForm.type.addFieldOptions.new = New Field in TCEFORM file, and I got new field in powermail form but how can i configure multiselect in this field.
Did you see the documentation part on https://github.com/einpraegsam/powermail/blob/develop/Documentation/ForDevelopers/AddNewFields.md?
There is also a part that describes the datatype that can be set via TSConfig.

Powermail 7.3 receiver attachment from hidden input field

i need a multiple file upload with drag&drop in a powermail form. I made it with jQuery that added the files to a hidden iput field. Does anyone know how i can attach these files to the receiver email. i tried with typoscript ..addAttachment and ...data = GP:tx_powermail... but it seems to work only with a static file.
I would first try to use the Powermail default https://docs.typo3.org/typo3cms/extensions/powermail/stable/ForEditors/AddANewForm/FieldFile/Index.html - then extend the frontend from there.

Dynamic show fields Symfony2

I trying to add some fields to form depending of checkbox. But I have no idea how can I do that. I think Ajax can be useful, but I dont work with Ajax in Symfony2 yet, and if my form build up not in the controller what value I need specify in url: option of Ajax?
That's quite a broad question, but essentially: the Symfony way is to add them to the Form in the Controller by reacting to FormEvents.
Symfony Docs on Form Events
One way to achieve what you're after is to submit the form twice - the first time code will react to the checked checkbox and arrange the rest of the form as required, the second time the form will be valid and you can take action. Details on the above link. AJAX might help with this, allowing a form submission as soon as you've checked the checkbox.
Although you can create HTML form fields using AJAX, when you submit the form those fields need to exist in the Form object. You can add them just in time, in the controller, before Symfony tries to bind them.

Where is Webform Component Tab in Drupal 7 Webfrom Module?

i want to make a custom form in drupal 7 which should contain fields like firstname,lastname, date of birth, phone, email and other fields. i download the webform module, install and enable it.
I saw in a video tutorial that there is a Form Component Tab from which we can create our form fields. But when i try to create a form it will not show me the form components tab. i find it every where but no form component tab. can any body plz help me so that i can create my custom form
I encountered with the same problem today. Didn't see the sub-tab containing [ *Form Components *E-mails *Form Settings] under Webform.
This happens when your theme is a little buggy or the Drupal 7 link overlay hides them.
Solution:
Try using webform by disabling the overlay (in the module section), or
Change your theme to Garland or Bartik for ADMIN AREA only.
Hope this helps!

Add extra fields to Joomla registration forms

I need to add some extra field to Joomla registration form without using any extension. Please does anyone know how I can go about. I have created the extra fields in the db and added the html for the textfields but I don't know what to do next.
Some articles here that describe how to add extra fields:
http://joomla-and-more.com/2010/02/05/how-to-velden-toevoegen-bij-de-joomla-registration-form/
http://blog.manchumahara.com/2010/03/18/how-to-add-extra-fields-in-joomla-registration/
http://www.youtube.com/watch?v=dk_86nHu3AM