• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Multiple fields on one line

Multiple fields on one line 12 years 7 months ago #19085

  • paypal14
  • paypal14's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
How do I code this if I am using XHTML inline? Please don't just reply "Uncheck auto-generate and add your own code - I already know that.

I need an example of what code to change. Currently, for City, State and ZIP it's on 3 separate lines using the list tag - I haven't seen this used in form layout before so have no idea how to modify it.

Current code:
<li class="rsform-block rsform-block-city">
		<div class="formCaption">{City:caption}<strong class="formRequired"><font color="red"><strong>*</strong></font></strong></div>
		<div class="formBody">{City:body}<span class="formClr">{City:validation}</span></div>
		<div class="formDescription">{City:description}</div>
	</li>
	<li class="rsform-block rsform-block-state">
		<div class="formCaption">{State:caption}<strong class="formRequired"><font color="red"><strong>*</strong></font></strong></div>
		<div class="formBody">{State:body}<span class="formClr">{State:validation}</span></div>
		<div class="formDescription">{State:description}</div>
	</li>
	<li class="rsform-block rsform-block-zip">
		<div class="formCaption">{ZIP:caption}<strong class="formRequired"><font color="red"><strong>*</strong></font></strong></div>
		<div class="formBody">{ZIP:body}<span class="formClr">{ZIP:validation}</span></div>
		<div class="formDescription">{ZIP:description}</div>

What do I do to this please?
The administrator has disabled public write access.

Re: Multiple fields on one line 12 years 7 months ago #19090

I don't know if this will be of any help but have you looked at the Custom PayPal demo form? I know it uses Inline but it does show how they put the Product description and Quantity on one line by editing the form layout to look like this.
Product and Quantity are two separate form components. When the form is done, the Quantity code is moved (by the person making up the form) into the Product code. Editing done with auto-generate off.

<table style="margin-top:10px; margin-left:30px;">
<tbody>
<tr>
<td>{Product1:body}<div class="formClr"></div>{Product1:validation}</td>
<td>{QuantityProd1:body}<div class="formClr"></div>{QuantityProd1:validation}</td>
<td>{QuantityProd1:caption}</td>
</tr>
</tbody>

Repeat for as many as you need.

Check the Custom PayPal form out, it might give you some ideas. I use this method for 4 or 5 of my forms.
Good Luck and let us know how you solve it.

K
Last Edit: 12 years 7 months ago by NEMGTR_webmanager. Reason: deleted extra character
The administrator has disabled public write access.

Re: Multiple fields on one line 12 years 7 months ago #19132

  • paypal14
  • paypal14's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
Thanks for the tip - can't find that demo - RSJoomla has not made their website very intuitive IMHO.

In your code snippet, I see you are using tables which I DO understand! :cheer: I had started the particular form I wanted to change in inline xhtml which, as shown in my code snippet, produces an unordered list. I'll try dong it in ordinary inline - I use xhtml as I like the border around the form.

Cheers
The administrator has disabled public write access.

Re: Multiple fields on one line 12 years 7 months ago #19135

Hi,
Here's the decoder ring to find the demo stuff.
demo.rsjoomla.com/

Or scroll to the bottom of the page, look for Demo and click on Front-end Demo selection.
Either will take you to the demo page which contains 5 or 6 sample forms that do different things. Each are downloadable .zip files and can be restored into your site and used as you want. I've used pieces of many of them to get my forms to work/look as I need them to.

I'm not a programmer so I haven't done much with the XHTML selection since I can't get them formatted the way I want to. I like the tighter line spacing in the inline selection -- closer lines, less screen space taken up.

Yes, sometimes it's a challenge to find things but I've been on here for 2+ years so I kind of think like they do on where items will be. Another helpful link is to the Feedback page. This is where you can suggest updates or features. Or vote for things already suggested. It's how they select some new features. It's at www.rsjoomla.com/feedback.html

Good luck and post your forms link when you get it done. Being able to see other forms provides inspiration for many of us.
K
The administrator has disabled public write access.

Re: Multiple fields on one line 12 years 7 months ago #19137

  • paypal14
  • paypal14's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
Thanks, I got it. As suspected, they were using standard inline which writes tables, and not XHTML like I was trying to use. I liked the XHTML layout and figured that should be the more current way of doing it, but, in the interests of making the forms read better, guess I'm going back to standard inline. :)
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!