• 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: Radio Button option distance

Radio Button option distance 16 years 11 months ago #361

  • rsd
  • rsd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
This is, or is not exactly a bug, depends how you see it.

I have changed from the table Form Style to a pure div/css style.

The biggest problem so far is with Radio Button. That's because every option of a Radio Button is threated as full form control.

Here is a screen a screenshot to show a problem, look at the distance of the Radio Button.



One way to avoid this would be to spit all the related Radio buttons with the same id in the same {field} iteration, instead of having one iteration for each radio option.

Doing so, still have a issue on how to separate it. Do I want it side by side? or Do I want it separated by a <br />? So, something like a {radioseparator} would be handy. (I personally prefer the <br /> option if not possible to choose).

This issue cannot be resolved thru a simple css hack, because I can only differentiate the radio (input) itself thru a class/id in the \"additional attribute\" option. I cant select the parent element to move it up without a javascript hack. In this particular case, having a {formid} available that could be used as a class to the parent element would help.
Attachments:
The administrator has disabled public write access.

Re:Radio Button option distance 16 years 11 months ago #498

  • rsd
  • rsd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
So, isn't the radio button problem an issue to anyone else?

Or am I missing something here?

-rsd
The administrator has disabled public write access.

Re:Radio Button option distance 16 years 11 months ago #503

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
A dirty hack(while i am working for a solution on this)

Try adding to your first radio title:

<div id=\"radios\">My title

and to your last radio description </div>

It's not so great but should work. Let me know.
The administrator has disabled public write access.

Re:Radio Button option distance 16 years 11 months ago #516

  • rsd
  • rsd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Try adding to your first radio title:
<div id=\"radios\">My title
and to your last radio description </div>

This might break tags structure, closing an outer tag before closing the inner one.

Here is what I have:
&lt;div style=\&quot;padding-top: 0.5em\&quot;&gt;
  &lt;div style=\&quot;float: right; width: 285px; \&quot;&gt;
    &lt;div style=\&quot;color: #959BAA; height: 1.5em;\&quot;&gt;
      {fielddesc}
    &lt;/div&gt;
    {field}
  &lt;/div&gt;
  &lt;label class=\&quot;left\&quot; 
     style=\&quot;color:#000033;
     padding-top: 1em\&quot;&gt;
    {fieldtitle}
    &lt;span style=\&quot;color: 
       red;\&quot;&gt;{validationsign}&lt;/span&gt;
  &lt;/label&gt;
&lt;/div&gt;

So, the tags would break.

I am not in a hurry for this fix. I just wanted to acknowledge it first. So far select boxes are enough for me.

Note that having a {fieldid} that could be used as a class in the parent element (div in my case) would help solve the problem (as hack, but).

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