pimpMyJoomla Board
Welcome, Guest
Please Login or Register.
Lost Password?
Ability to group fields horizontally (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Ability to group fields horizontally

#703
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
Ability to group fields horizontally 2007/05/24 15:19 Karma: 0  
I didn't see that anyone has mentioned this yet, but I could have missed it. I think it would be cool to be able to group fields horizontally. That way it could be like:

First_________ Middle_________ Last________________

instead of

First___________
Middle__________
Last____________

Maybe there is a way to do this already that I haven't discovered?

How about creating a wiki type user manual?
  The topic has been locked.
#706
alex (Admin)
Admin
Posts: 301
graph
Re:Ability to group fields horizontally 2007/05/24 16:57 Karma: 8  
Thanks for your suggestion. A wiki would be great indeed.

In order to make your fields horizontally, you have to alter the code in your Form Style tab(the field style code), something like this:

change this:
Code:

 <tr>     <td align="right" valign="top" width="33%">{fieldtitle}{validationsign}</td>     <td valign="top" width="34%">{field}</td>     <td valign="top" width="33%">{fielddesc}</td> </tr>



into this:

Code:

  <tr>     <td align="right" valign="top">{fieldtitle}{validationsign}{field}{fielddesc}</td> </tr>



Let me know if that was helpful.
  The topic has been locked.
#708
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
Re:Ability to group fields horizontally 2007/05/24 17:30 Karma: 0  
Very helpful - Thanks!

Now if you could just show me how to do a redirect on a radio button...

http://www.pimpmyjoomla.com/component/option,com_fireboard/Itemid,30/func,view/id,629/catid,2/

Let us know when the wiki is up!

Post edited by: evilrobot, at: 2007/05/24 17:33
  The topic has been locked.
#720
alex (Admin)
Admin
Posts: 301
graph
Re:Ability to group fields horizontally 2007/05/25 00:30 Karma: 8  
OK,

i tested it and it works.

Let me explain what i did:

In your 1.0.3, add the sample form to start, then Add a new field like this:

Field Id: radioselect
Field type: radio
Default value: paypal.html|Paypal,moneybookers.html|Moneybookers,cc.html|Credit Card
Field style:
Code:

 <tr> <td>{fieldtitle}</td>     <td align="right" valign="top" colspan="2">{field}</td> </tr>

(i altered the main field style, by removing the third cell, so the radios can expand).

Then, in your Edit Form screen, under the Form Edit tab, add this:

Return URL : {radioselect}

This way, when someone selects Paypal, the data is stored, and they are being redirected to paypal.html and so on.

Let me know if it worked.
  The topic has been locked.
#743
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
Re:Ability to group fields horizontally 2007/05/25 13:39 Karma: 0  
Excellent! This worked perfectly, this is a small problem but I was able to work around it:

When attempting to use an external address it would not work for me (I was using a redirect to a https:// - didn't try a http:// to see if it would work) - to fix this problem I just put the link in a wrapper, made a menu link to it, copied the url of the menu link, unpublished the menu item, and then put the link to that in forMe.

Also, I'm still having problems getting fields to line up horizontally on text fields. Perhaps I am understanding incorrectly - does horizontal line up only work if you are using radio buttons or check boxes so that you can enter something like: 1|Selection 1,2|Selection 2,3|Selection 3 in the default value?

I'll keep playing around - I would like to be able to line up text fields horizontally (like First Name, Middle Name, Last Name), and I would also like to line up two checkboxes next to a text field (example: _GED _High School Diploma - Year you graduated __________)

Thanks! I'll go purchase the component now!
  The topic has been locked.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop