• 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: 2 dropdowns in a row?

2 dropdowns in a row? 12 years 3 months ago #16076

need this to select hours and minutes and i cant figure out how to do this. Any help ?
thx
The administrator has disabled public write access.

Re: 2 dropdowns in a row? 12 years 3 months ago #16079

Hi,
You might be able to adapt the idea used in the Custom PayPal example. If you look at it, there are two things on one line (product and quantity).
They do this by editing the form layout code to combine the two components. Here is a test I did. I created two drop down components: hours and minutes
The form layout looks like this:
<tr class="rsform-block rsform-block-hours">
<td>{hours:caption}</td>
<td>{hours:body}<div class="formClr"></div>{hours:validation}</td>
<td>{hours:description}</td>
</tr>
<tr class="rsform-block rsform-block-minutes">
<td>{minutes:caption}</td>
<td>{minutes:body}<div class="formClr"></div>{minutes:validation}</td>
<td>{minutes:description}</td>
</tr>
</table>

To move the minutes to the hour line: Uncheck autolayout.
Copy the "minutes" body info into the "hours" body line as shown below.
<tr class="rsform-block rsform-block-hours">
<td>{hours:caption}</td>
<td>{hours:body}<div class="formClr"></div>{hours:validation}</td><td>{minutes:body}<div class="formClr"></td>
<td>{hours:description}</td>
</tr>
<tr class="rsform-block rsform-block-minutes">
<td>{minutes:caption}</td>
<td>{minutes:body}<div class="formClr"></div>{minutes:validation}</td>
<td>{minutes:description}</td>
</tr>
</table>

I don't know how to get the two items to be closer together... I'm not a programmer but have been able to adapt some of the code suggestions on this forum to make forms do what I want.

Remember if you regenerate the layout, these changes disappear! Always copy it to a file for reference.
Hope this helps.
The administrator has disabled public write access.
The following user(s) said Thank You: horst-heck

Re: 2 dropdowns in a row? 12 years 3 months ago #16120

Yep, thats it...

<tr class="rsform-block rsform-block-hours">
<td>Stunde</td>
<td>{hours:body}<div class="formClr"></div>{hours:validation}</td><td>Minute</td><td>{minutes:body}<div class="formClr">
<td>{hours:description}</td>
<tr class="rsform-block rsform-block-minutes">
</tr>
</table>

did it for me, now givin html a try :)

thx
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!