• 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: Scrollbar fields

Scrollbar fields 10 years 5 months ago #29573

Hi Guys

I am new here, but would it not be cool to have a feature like this.
snag.gy/lUpg8.jpg

Where you have scrollable bars as your fields. I have had this requested a few times, but lack the knowledge to implement it.

This would really seperate your product from the rest.
jquerytools.github.io/release-notes/
The administrator has disabled public write access.

Scrollbar fields 10 years 5 months ago #29616

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Although RSForm!Pro does not include by default the possibility to add the HMTL5 range field, you can implement this using some custom scripting.

First, add a regular textbox field to your form. We will use the following Javascript code to change it into a range field when the page gets loaded:
<script type="text/javascript">
window.onload=function range(){
document.getElementById('textbox').type='range';
document.getElementById('textbox').setAttribute('min', '10');
document.getElementById('textbox').setAttribute('max', '20');
document.getElementById('textbox').setAttribute('step', '1');
}
</script>

where 'textbox' needs to be replaced with the actual name of the textbox field.

The code needs to be placed under the following path:

Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> CSS and Javascript >> Javascript area.

Note that you will need to adjust the code by adding the 'min', 'max' and 'step' values that best suit your needs.

If you need to have a default value set for the field, you can simply set it in the textbox's configuration area.

PS: This might not work for all of your users as HTML5 is not currently supported by all browser versions and also please note that it's merely an example and not a solution.
My help is not official customer support. To receive your support, submit a ticket by clicking here
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!