• 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: Remove class rsform-input-box

Remove class rsform-input-box 9 years 10 months ago #31506

  • kmedri
  • kmedri's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Hi,

I would like my form to use only bootstrap classes. How can i prevent the class "rsform-input-box" from being added to the <input>

Kevin
The administrator has disabled public write access.

Remove class rsform-input-box 9 years 10 months ago #31507

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
There is no configuration option available to disable the adding of the "rsform-.." specific classes to the input. You can try using a script called on form display, to be more exact, use a str_replace to remove standard class and add your own.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Remove class rsform-input-box 9 years 9 months ago #31721

  • rsjoomla34
  • rsjoomla34's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
I use NoNumber's re-replacer to fix RSForm Pro to conform to Bootstrap 3 form requirements.

I have several replacements that include:

- Removing the 'formResponsive' class and replacing it with another class
- removing the rsform-input-box and other classes and replacing with 'form-control'
- removing button classes
- adjusting 'value' to 'placeholder' (where necessary).

I then turn of the form layout generation and strip out everything that's unnecessary.

That pretty much gets me to conforming with Bootstrap without breaking RSForm.

That said, I think it's unfortunate that given the proliferation of Bootstrap-based templates, that this isn't an option out of the box. I'd particularly love it if it were possible to specify that the form will be used in a Bootstrap template and not require the loading of already loaded css and scripts.
The administrator has disabled public write access.
The following user(s) said Thank You: schekutiev

Remove class rsform-input-box 9 years 9 months ago #31725

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Bootstrap 3 isn't a Joomla! standard...
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.

Remove class rsform-input-box 9 years 9 months ago #31730

  • rsjoomla34
  • rsjoomla34's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
I didn't say it was.

It is however massively, massively popular.

Right now I think RSForm Pro is be absolute best solution for forms in Joomla, it's got some seriously great stuff in it.

But it can be a pain in the butt to modify. I get sick of having to do the same re-replacer codes, apply the same attributes, adjust the same styles on site after site.

Bootstrap is in heavy use throughout the Joomla world. It'd be awesome if RSForm had as one of its layout options 'Bootstrap style' where it used all the proper classes, elements and attributes.

And it'd cut down on site load time because we're already loading the styles necessary to make the form look good.
The administrator has disabled public write access.

Remove class rsform-input-box 9 years 9 months ago #31731

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Yes it is and i think is bad, as long as Joomla! does not adopt this a standard. Let me ask you this: What is the common ground for all Joomla! developers ? I think the answer should be Joomla! standards. This ensures a broad compatibility.

Unfortunately some template vendors ignore this and simply want to make their templates reach in features and design but ignoring the compatibility part.

Sure! we would like this too, but we have compatibility in mind. Luckily if you do need that extra step (style wise), you can customize RSForm!Pro forms rather easily - it comes down to some CSS adjustments and a few class changes.

PS: As we speak we are working on a an update for RSForm!Pro that will incorporate improved layouts and style. B)
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.

Remove class rsform-input-box 9 years 9 months ago #31737

  • rsjoomla34
  • rsjoomla34's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
I don't disagree - I refuse to use typical templates.

I used a Bootstrap starter simply to get a predefined grid that I know works, along with a few other things. Everything else I code from scratch. I don't use big template vendors because I think they lock you into a specific pathway of thinking about a project.

But I don't see the point in re-inventing the wheel if we're talking about template standards. There are several widely adopted frameworks, of which Bootstrap and Foundation are just two, that could be adapted for our needs. But don't even get me started about the inconsistency of component/plugin/module developers when it comes to resource loading and libraries. I spend half of every project stripping unwanted libraries out of Joomla and its extensions.

And I've said RSForm is the best there is, but for I personally dislike its standard templates and I don't think I should have to load an entire css library for it if I don't need it, or add to my own css just to override it.

With the default styles in place I cannot make RSForms behave like bootstrap forms unless I either add to the code bloat by overriding css (which means having two sets of code doing the same thing) or using ReReplacer to remove the RSForm classes that can't be removed - only added to.

I choose ReReplacer because its the lesser of two evils, but I wish I didn't have to.

But this is just one little thing, I have plenty of niggles and plenty of code I strip out regularly from other components who are much, much more annoying.

Nevertheless - RSForms Pro is excellent and has excellent support - I've been buying it for years and will continue to buy it.
The administrator has disabled public write access.
The following user(s) said Thank You: info0207

Remove class rsform-input-box 9 years 9 months ago #31739

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
rsjoomla34 wrote:
And I've said RSForm is the best there is, but for I personally dislike its standard templates and I don't think I should have to load an entire CSS library for it if I don't need it, or add to my own css just to override it.

This will be addressed in the next revision.
rsjoomla34 wrote:
Nevertheless - RSForms Pro is excellent and has excellent support - I've been buying it for years and will continue to buy it.

Thank you for your kind words and vote of confidence!
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.

Remove class rsform-input-box 9 years 8 months ago #32048

  • pmarty
  • pmarty's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
cosmin.cristea wrote:
There is no configuration option available to disable the adding of the "rsform-.." specific classes to the input. You can try using a script called on form display, to be more exact, use a str_replace to remove standard class and add your own.

Hello,
Could you be more specific?

If I want to replace "rsform-input-box" class by "myownclass-input" class, what should I do exactly?

I need that in order to be compliant with the framework used by the template I've choosen (Warp Framework).
Thanks for your help!
Philippe
The administrator has disabled public write access.

Remove class rsform-input-box 9 years 8 months ago #32057

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
@pmarty

First check out the Scripts called on form display section:

https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/php-scripts.html

You will notice the $formLayout variable. This stores all form HTML code.

Example:
$formLayout = str_replace('rsform-input-box', 'your class here', $formLayout);
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.
The following user(s) said Thank You: pmarty

Remove class rsform-input-box 9 years 8 months ago #32059

  • pmarty
  • pmarty's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Ok, understood.
Just what I needed.

Thanks a lot!
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!