How to add honeypot to forms in TYPO3 Version 11? - typo3-11.x

There use to be an extension for honeypot in TYPO3. My understanding is that in the newer versions of TYPO3 (version 11 and latest, there is no separate extension required and a honeypot field is included in the system form extension. Is that true?
If yes, how can i see and use it in my form? Below is the image of form elements that i currently see. My TYPO3 version is 11.5.16

It is true, the honeypot field is integrated into the form by default.
The documentation says that the honeypot field cannot be activated via form editor.
Anyway, the honeypot field is automatically present in the HTML in my contact form.
However, it seems that either the spammers are tricking the field or the finisher is not blocking the sending.
Anyway, I get spam every day through my contact form.
An explanation would be appreciated by me as well.

Related

Umbracco, forms and rich text editors

Looking to understand if it is possible in Umbraco to have a form page, that contains a rich text CMS editor too?
Do I need a plugin?
Umbraco has a paid for plugin called Umbraco Forms (https://umbraco.com/products/umbraco-forms/).
I'm sure there are likely plenty of free plugins for rich text editors if you want to create a custom form.
As mentioned in Bradley's answer, Umbraco Forms package is what most Umbraco Developers would use.
It is not free, but if you are working for an Umbraco Gold Partner company, then it is currently free for your company. If this is your case, then you should be able to generate as many Umbraco Forms licences as you need for your Umbraco projects and use them without any issues, otherwise, you need to purchase it.
After installing the Umbraco Forms package to your Umbraco project, you can create your Forms directly from the Umbraco Backoffice>Forms session:
You use "Answer types" to create your form fields. There is not a Rich Text Editor answer type out of the box at the moment.
Your options could be;
Using a Short or Long Answer answer type.
Using the Title and Description answer type.
Alternatively, you can extend the Umbraco backoffice for Umbraco forms and create your custom answer types by creating your custom Field types as described here . While doing this, you might need some custom workflows, and here is how you can create custom workflows.

Publishing of orbeon forms

Is it possible to do a re-publish of orbeon forms automatically? (ie Forms that have been created with Form Builder and which have been saved and deployed/published before).
Actually we are upgrading from Orbeon 3.9 to Orbeon 4.6, and currently we have lots of orbeon forms in our 3.9 environment. since its very difficult to publish the forms one by one after upgrade to 4.6, it will be good if i can find an easy way to republish all the existing forms.
I found something here at https://github.com/orbeon/orbeon-forms/wiki/Form-Runner-~-Home-Page
When I tried this, I didn't get any error but the forms were not actually published. and I got error when I opened a new instance of any existing forms.
Appreciate if any one can help me on this.
Thanks
Did you check the orbeon log for errors? If orbeon is running in production mode there may be an error that is not displayed to the user.
I haven't gone through an upgrade myself, but it's possible that you need to upgrade your form definitions. Orbeon 4.6 includes a feature to do this in bulk on the Form Runner Home Page. See the 4.6 blog post.

Access previous versions of form definitions with Orbeon

It appears that Orbeon does not support form versioning. When a change is made to a form definition, the form builder will only show the most recent version of the form. We are using MySql to store our data and I have noticed that the form definition is not overwritten in the database. A new line is added with a newer time stamp.
One requirement we have is that old revisions of a form must be trackable. At the very least we need to be able to view old versions of a form. How can this be done? The only way I can think of doing this is creating an instance of a form named with the revision everytime the form definition is updated. Has anyone found a better way to handle versioning in Orbeon?
At this time, and this includes the upcoming Orbeon Forms 4.0, there is no proper form versioning feature in Orbeon Forms (but we have some ideas as to how to implement this).
If what you want is that form data entered with a given version of a form definition is always loaded with that same version of the form definition, then unfortunately that feature isn't there.
Now, as you have noticed when using MySQL or Oracle, form data and form definitions are never actually deleted from the database. But this is more of an auditing feature rather than a versioning feature. With this, if you just want to find or restore an older version of a form, you can do this with a SQL query.

Using Form-Builder-Generated-Form with Java Application

I tried the approach of using Form-Builder-Generated-Form within Java application suggested here < Running Orbeon-Form-Builder-Generated-Form with Java Application > : downloaded Orbeon nightly build, created a sample form using Form Builder and copy & pasted it into JSP page in my app. However, when I try to access this JSP, it redirects me to: /myapp/fr/unauthorized . Can you please tell me what I maybe doing wrong? Or what is the right way of making Orbeon process Form Builder generated content in Java app?
For my deployment I followed separate deployment and configuration specified in Orbeon documentation. Thanks in advance.
You are not doing anything wrong, but Orbeon Forms doesn't support this type of form deployment.
The separate deployment mode runs the output of your JSP directly through the XForms engine.
Form Builder-generated forms OTOH expect pre-processing via the Form Runner runtime, in particular through the components.xsl XSLT transform. This is needed to support all the Form Runner features, including built-in persistence, error summary, internationalization, etc.
Currently the cleanest way to integrate such forms with your own app is to just run them side by side (Orbeon WAR + your own WAR) and navigate between each other via links and POSTs.
You could also use an iframe, although that is often a disliked solution.
You could also transform the form produced by Form Builder into plain XForms that doesn't assume Form Runner. It wouldn't be too hard to do but would be outside the scope of this StackOverflow question.

Adding html form and input tags into Symfony static pages

I inherited the management of a Symfony site and need to add some HTMl form tags to one of the "static" pages via the CMS. The scenario I have is:
/index.php/splash/welcome pulls up the welcome screen.
We want to be able to add a subscription button on that page.
The HTML has been supplied for us by the company that handles the subscriptions.
The form post method has an action that references a script on a remote site (no lectures on the security implications please ;-).
When I add the <form... and <input... tags via the CMS admin panel, the tags get removed automatically by Symfony.
Is there a way to tell Symfony to allow these tags?
Thanks in advance,
Marty.
This is goign to depend completely on how the developer set up the CMS. Youre using a rich text editor in source mode i would take a look at that editor's config file and documentation because its probably the one responsible for stripping the tags.
If its just a plain text area i would check the submit action for the edit form and take a look at the code... he may be using something to strip them in there.
If youre using one of the Symfony CMS plugins (Diem, Apostrophe, Sympal) i might be able to help further if i know which one youre using. If its something custom we would need to see the code. This isnt really indiciative of the Symfony core, but rather the CMS youre using.

Resources