FeedBack Form and <br />

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
tmhai

FeedBack Form and <br />

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: FeedBack Form and <br />

Post 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
tmhai

Re: FeedBack Form and <br />

Post by tmhai »

What I want is (Where # is the checkbox or the radio button):
# Good
# Bad
# Ok

Where now It is:
# Good # Bad # Ok
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: FeedBack Form and <br />

Post by Dr.CSS »

check this form

  mark
tmhai

Re: FeedBack Form and <br />

Post 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
maxilmago

Re: FeedBack Form and <br />

Post 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".
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: FeedBack Form and <br />

Post 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.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Grega
Forum Members
Forum Members
Posts: 55
Joined: Wed Apr 05, 2006 8:05 am

Re: FeedBack Form and <br />

Post 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.  :(
Last edited by Grega on Tue Jun 06, 2006 10:55 am, edited 1 time in total.
Können die mich nicht vor dem Frühstück töten?
Locked

Return to “Modules/Add-Ons”