Struts 2 form customization - forms

I use Struts 2 to create form in my application. I am struggling with a form customization.
I 've tried with theme simple, xhtml and css_xhtml but i am not able to find a solution.
Struts display the one input text by row, i want to display two or more input text by row. I join the image which explains want i'd like to do.
Thanks

With "simple" theme you can do whatever you want; there's nothing provided other than form value and input element. (You also don't get the automatic error reporting with the form element, but it looks like you wouldn't want that anyway.) If it's not working with "simple" then you're building your form wrong, or forgetting to include your own label, or something.

It might be easier to simply accept the layout Struts gives you and by assigning unique id's to your input fields take control the layout through a custom css file.

After many test, i've resolved my problem by using the simple theme. And adding custom css to format my form. Thanks –

Related

How can I add static text to my MSCRM form?

I need to add static text on my form (can't use the xrm notification option) under specific terms I need to show and hide that text but I can't hold it in a field.
First I thought to use an Image with my text on the form, is there a better way to do that?
Like said in comments, HTML web resource is the way to go. You can embed the HTML in a form section/tab and hide them using conditional scripting in form load.
Reference

Add Placeholders to Gravity Forms

Is there a way to add HTML5 placeholders to Gravity Forms? I've tried a number of plugins, but none of them appear to work.
Gravity Forms: http://www.gravityforms.com/
One Plugin (that doesn't work): http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/changelog/
Another: http://wordpress.org/extend/plugins/gravity-forms-placeholders/
Yes, please see my answer on the following thread: Can I Define my own form markup and map with to the form generated using Gravity Form (wordpress plugin)?
This will add an extra field for text inputs that will allow for placeholder text. Very easy to implement, basically adding some code to the functions.php file.

need to style input from a form with css in real time

Ok im struggling to find anything on this as im probably searching the wrong keywords.
I have a backed form thats use to display content on a page. When entering the details i want to be able to use a basic text editor to style the text, like bold, bullets, underline.
On top of that i would also like to allow them to wrap section in paragraph tabs, apply a certain style i.e style id="x".
Its more for backend so it doesnt have to be really user friendly but if there was an uncomplicated way of showing the styles in the form as i apply them, basically a WYSIWYG view. If not i will settle for applying the styles without having to see all the hmtl and css tags in the editor but when the information is passed via the INSERT query it will show pass all the relevant code like My Style and so on.
Now im quite happy to spend the time learning how to do this if you point me in the right direction but i have no idea what keywords to search. Ideally if there is a script out there i can just edit to my needs would be great too rather than starting from scratch.
Finally since im learning php and mysql still keeping it dumbed down will help and also since my values im passing is going to be full of characters the code wont like what functions should i look up to pass the code and content into the database to avoid breaking the code
I'm not entirely sure what you mean, but it seems you can achieve what you want using an editor like for example TinyMCE in combination with JQuery?
With JQuery you can show/hide items and ander your css like
$("p").mouseover(function () {
$(this).css("color","red");
});

How to put zend radio in an extended table

I'm trying to build a form in the Zend Frameword in which there has to be a table like this:
So, it's a radiobutton followed by some descriptions about a subscription of some sorts. I have googled myself senseless, but can't make this happen. I have tried several form-decorators, but it seems that the radiobuttons stick together, and you can only wrap a whole group of radiobuttons in an html-tag...
The form will be rendered by a Smarty template, but I can't get the individual radio-buttons in the template. Maybe somebody has some experience with this.
Does anybody have an idea or a link to get me going with this?
This task is suited for View Script Decorator .
http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.viewScript

Typo3: powermailer: one form on different places on the same page

I have a page where I need one form in the main content and one in the footer.
The problem is that these two forms should be connected.
The form in the main content have three input fields for name, email etc. and the one in the footer has two radio buttons.
The radiobuttons work as "I agree" so they have to, somehow, be connected to the other fields.
I use typo3 with powermailer.
I have a thougth of using css and just move those radiobuttons to the footer.
But I would like a more permanent sollution. Thanks.
I think that there is currently no better solution, but youre on the right way with CSS.
If i understood you correctly. You are trying to implement two plugins which are connected to each other. This is impossible with powermail.
Dirty, but useable is the CSS way or maybe a JavaScript solution for some fancy effects.