• 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: Which CSS needs to be modified?

Re:Which CSS needs to be modified? 16 years 2 months ago #6370

Using firebug for firefox, you can see all the styles, and which stylesheets to modify.
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 16 years 2 months ago #6431

  • covareo
  • covareo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 2
octavian wrote:
Hello,

RSform! Pro is not missing any features. RSform! Pro is an improved and revised version of RSform!.
If you want to add classes to your fields, you have the additional attributes field, which adds any HTML permitted attribute to the specific field.
class="someclass"

Is it possible to assign a class to the entire form?
Last Edit: 15 years 10 months ago by octavian.
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 15 years 10 months ago #7455

I wonder if there's any answer to be had here...
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 15 years 10 months ago #7638

  • LPent
  • LPent's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I fear there is no answer here.

I found that assigning a class to the actual form-element can only be done by changing it in the source-code (functions.php).

As for classes on individual items of e.g. a select-box... I don't know. It's something I need myself, but am yet to find a solution for this.

I love RSForms, but the fact that it uses a "template" structure makes it hard to customise the code, it would have been better if they just gave us the full code (incl. form tag) in the layout-window instead of {...} template codes.

---Additional:

I found a solution, albeit not a very efficient one.

1) create the form.
2) show the form in your browser and look at the source-code.
3) copy the sourcecode of the form between <form> and </form> (and place it in your favorout editor)
4) disable "auto genrate layout" in RSForms, and replace the instances of the template-tags that need a custom tag, with the source-code you just copied.

Example:
<div class="formCaption">{frm_name:caption}<strong class="formRequired">(*)</strong></div>
		<div class="formBody">{frm_name:body}<span class="formClr">{frm_name:validation}</span></div>
		<div class="formDescription">{frm_name:description}</div>

becomes:
<div class="formCaption">{frm_name:caption}<strong class="formRequired">(*)</strong></div>
		<div class="formBody"><input type="text" value="" size="20"  name="form[frm_name]" id="frm_name" /><span class="formClr">{frm_name:validation}</span></div>
		<div class="formDescription">{frm_name:description}</div>

So in a nutshell, I simply changed the {frm_name:body} with <input type="text" value="" size="20" name="form[frm_name]" id="frm_name" />
Now I can assign a class to it and it still works completely like before (including validation etc.), but m,ake sure you only substitute the {...:body} tags.
Last Edit: 15 years 10 months ago by LPent.
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 15 years 10 months ago #7639

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Every form element has an "Additional Attributes" field. Additional attributes are added to the HTML code of the element, so if you would add:
class="myclass"
your textbox (for example) would become:
<input type="text" class="myclass" />

Adding a class to the form does not require any modifications to the source code of RSForm! Pro. Go to the Scripts tab and paste this in the Scripts called on form display area:
$formLayout=str_replace('<form','<form class="myformclass"',$formLayout);

If anyone has difficulties using RSForm! Pro or obtaining a specific result, you can always submit a ticket and we'll be there to help you, Monday through Friday, 9 AM to 5 PM :)
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 15 years 10 months ago #7643

  • LPent
  • LPent's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I know you can do this with things like <input> I am sorry I used the wrong example.

The problem we are trying to solve here is adding classes to things like <option> which CANNOT be done with the "additional attributes" box. For such things you DO need to change the sourcecode.

Again, I should have used a better example, I agree, but the principle is the same.

So to be clear, if you wish to add a class to an option-tag you simply change {frm_name:body} with something like: <select name="frm_name"><option class="someclass">Item1</option></select> according to my previous post.

Incidently, the same applies to individual checkboxes in a group. You cannot assign a class to an individual checkbox, so you will have to expand the sourcecode to do this.
The administrator has disabled public write access.

Re:Which CSS needs to be modified? 15 years 10 months ago #7659

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
You have access to the form's layout through the $formLayout variable.

You can use the following code in the Scripts called on form display area:
$formLayout=str_replace('<option','<option class="someclass"',$formLayout);

This way you'll keep the autogenerated layout :)
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!