Page 1 of 1

FeedBack Form and <br />

Posted: Mon May 01, 2006 12:01 am
by tmhai
Hello _SjG_,

We recently talked in the IRC about adding
after radio and checkbox items, that way they were listed in a line, rather than just meddled up all together on a single line.

I would like to know how to do this, as a quick fix, as i know you are busy with work and all and that you are pressured for the release of Form Builder. Others may reply. I need this as soon as possible.

This did not work (in RadioGroupInput.class.php):
        echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts, $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'');
        echo "
";

- Bobby

Re: FeedBack Form and <br />

Posted: Mon May 01, 2006 3:10 am
by Dr.CSS
what's the diff. between
that way they were listed in a line, rather than just meddled up all together on a single line.
are you talking about 'check box group'

    mark

Re: FeedBack Form and <br />

Posted: Mon May 01, 2006 3:37 am
by tmhai
What I want is (Where # is the checkbox or the radio button):
# Good
# Bad
# Ok

Where now It is:
# Good # Bad # Ok

Re: FeedBack Form and <br />

Posted: Mon May 01, 2006 7:56 am
by Dr.CSS
check this form

  mark

Re: FeedBack Form and <br />

Posted: Mon May 01, 2006 9:05 am
by tmhai
Im talking about the checkbox and radio button groups, their just in clusters and are not listed in a list like the example i gave above. The textboxes are like that by default, but im not interested in customising those.
tmhai wrote: What I want is (Where # is the checkbox or the radio button):
# Good
# Bad
# Ok

Where now It is:
# Good # Bad # Ok

Re: FeedBack Form and <br />

Posted: Mon May 01, 2006 9:20 am
by maxilmago
maksbud wrote: check this form

  mark
http://validator.w3.org/check?uri=http% ... estionaire

http://validator.w3.org/check?uri=http% ... online.php

<form id="m2moduleform-1" name="m2moduleform-1" method="post" action="index.php"

there is no attribute "name".

Re: FeedBack Form and <br />

Posted: Tue May 02, 2006 5:08 pm
by sjg
For what it's worth, the solution was to edit modules/FeedbackForm/classes/RadioGroupInput.class.php and change line 45 from

Code: Select all

echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts, $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'');
to

Code: Select all

echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts, $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'','<br />');
In FormBuilder, you'll have to edit a smarty template.

Re: FeedBack Form and <br />

Posted: Tue Jun 06, 2006 10:50 am
by Grega
Maybe you can add a class into the input-tags (e.g. class="line"). Then you have to add tis code to your CSS:

Code: Select all

.line{
display: block;
}
It's a quick-shot, don't know if it works.  :)

[EDIT]
And now, I tested it: No, it doesn't work. Sorry. One reason: The input-tags are all in one seperated table-cell.  :(