Joomla 3 JForm remove fieldset - forms

I'm developing a user profile plugin for Joomla 3 and I need to manipulate forms according to some conditions. More precisely in the onContentPrepareForm event I want to remove a full fieldset of fields, but I can't find in the API a method to do that in-a-row.
At the moment, the solution I'm using is to loop over the fieldset and remove fields, but I don't like this solution.
Any other solutions?

Related

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.

Symfony: unique options in embedded form collection

I have an embedded form collection in Symfony. Which is working nice. I am working with a manytomany assocation mapping.
Except i want to create (with javascript?) the form so that only unique values are available. In my example i have an Organisation which can exist of many users. When i add user "L" in this case and i want to add a second user i want to prevent that user "L" is available in the other dropdown.
The way i embedded the collection of forms is exactly like the documentation of Symfony has learned me. (http://symfony.com/doc/current/cookbook/form/form_collections.html)
Down below is an example of how it works now (in this example I want to prevent that in the dropdown the user "L" is available as an option.
Thank you very much!
Unfortunately, there's no way you can make the HTML form behave this way. HTML forms just do not have any composite (or dependent) <select> widgets. So, the right way to go here would be:
validating the form server-side, so that duplicate values in two select boxes are not allowed;
adding some JavaScript code to the view that renders form. Perhaps this code should listen to <select>s' onChange events, and once an event is received, the option selected in the first box should either receive a disabled attribute or get deleted.

Adding attributes to cq5 form using FormsHelper

I'm trying to add an attribute to the form tag of a cq5 form. I noticed that the output is generated using
FormsHelper.startForm(slingRequest, new JspSlingHttpServletResponseWrapper(pageContext));
I was curious how I can either:
alter the request so that the formHelper prints the form w/ the attributes I need
Hook into the actual print out to include the attributes I need.
Any help or direction would be good.
note:
I've already checkout out the javadoc for formshelper, done some searching via goolgle, and dev.day.com including the dev.day.com doc on developing forms.
thank you
API doesn't allow you to add any attributes to this tag. You can only specify desired CSS classes adding css property to the form component. Of course, you can also create component sling filter and response wrapper to rewrite created form, but it seems to be an overkill. I think better solution is using JS to add attributes client-side.

Using Zend Form Decorators for non Form Elements at All

I have question for all Zend Framework developers.
Does someone tried to use Zend Form Decorators to render some elements that have data but thos element is not a Form at all. For example I have element that is Blog Post and I want to add to this element my own decorators ex. Title, User, Content, ButtonBar and HtmlTag at the End.
I wonder why in Zend Framework they call this Zend_From_Decorator_* instead of just Zend_Decorator_*?
Does somebody tried this before and can give some advice how to make it.

Joomla Form builder download!

I am searching the joomla component that generate form fields (Form Builder) with database fields. So anybody know the component for installation. Please provide me a link to download component.
You can try RichContactPro. A Joomla form builder
JForms should do the trick. Building forms could not be any simpler. In JForms you just drag'n'drop the fields that you require and it's ready to go.
I use ChronoForms for building forms and ChronoConnectivity to associate those forms with either existing tables or tables created through ChronoForms based on the form you build. You can put together some pretty intricate apps using these 2 components.
Try this form builder. It can be used not only for Joomla
I'm using JCCreator
They have live chat to support you
And also SALE with coupon NewUser2019 gives 50%