forms:slider
AJAX
ajax:delayedload ajax:event ajax:navigation ajax:region
Data
data:calendar data:column data:eventrepeater data:postrepeater data:productbrandrepeater data:productcategoryrepeater data:productrepeater data:repeater data:table data:template data:tree
Forms
forms:address forms:captcha forms:checkbox forms:checkboxgroup forms:codeeditor forms:combobox forms:datepicker forms:dialogbox forms:editbox forms:fileupload forms:form forms:hidden forms:money forms:officeuseregion forms:option forms:password forms:paymentmethod forms:radiobutton forms:radiobuttongroup forms:row forms:searchbox forms:signature forms:slider
ATTRIBUTES
EXAMPLES
forms:spinbox forms:submitbutton forms:submitimage forms:submitlink forms:successcontent forms:textarea forms:timepicker
Layout
layout:gallery layout:productgallery layout:rotator layout:stepper layout:stepperpanel layout:tablist layout:tablistitem
Logic
logic:dependency logic:else logic:if logic:include logic:parse logic:variable
Navigation
navigation:breadcrumbs navigation:item navigation:primary navigation:secondary
Personalisation
personalisation:firstname personalisation:fullname personalisation:lastname personalisation:other
Standard
standard:audio standard:embed standard:icon standard:image standard:link standard:script standard:tooltip standard:video
Templates
templates:button templates:card templates:column templates:fancybox templates:faq templates:flexlayout templates:header templates:row templates:section templates:styles templates:teammember templates:testimonial
Regions
regions:content regions:contentadditional regions:security regions:togglable
Third Party
thirdparty:googlemap thirdparty:googlemapmarker

<forms:slider />

Allows the user to set a numeric value by clicking the mouse and sliding a bar up / down, or left / right.

Attributes

autoFocus
bool
Auto Focus

If true, this control will attempt to focus itself after the page has loaded. Note that only one element may be focused on the page at a time.
Default = false
dataColumn
Sets the data column

The datacolumn links the form item to a key used when getting or saving from a component (as defined by the parent form).
disabled
bool
Disable Input

Disables the input, preventing user interaction
height
string
Height

Sets the height of the element. The default units are pixels. include the percentage symbol % to user percentage values.
id
string
Most form items need a unique id so that they can submit data to the server. No two form items may have the same id. For situations where multiple form items submit to the same field, see the name attribute. Id's that begin with contact_ will automatically save Contact information to the Contact database as long as the user has entered enough identifying information (ideally Name and Email). Check the Contact Fields page for correct field names.
max
int
The maximum value of the slider
min
int
The minimum value of the slider
name
string
Sets the name of the form item. Most of the time, the id attribute will suffice. However, with form items that post multiple values into an array, each item will need to have the same name, followed by []. For example three controls with name="data[]", will all post into 'data'.
Radio buttons belonging to the same group will have to share the same name.
saveState
bool
Restore state on reload

Whether the value of the input persists when the page is revisited.
Default = false
step
int
The step between movements when sliding.

If you want to accept any value regardless of how many decimal places it extends to, you can specify a value of 'any'.
transformations
Value Transformations

Sets the value transformations to be applied to the value of the form item as a comma separated string.
validations
Validations

Sets the validations to be applied to the value of the form item as a comma separated string.

Eg: validations="mandatory"
width
string
Width

Sets the width of the element. The default units are pixels. include the percentage symbol % to user percentage values.

Examples

Slider

Demonstrates a slider with a range of {0...5}.

HTML:

<forms:row label="Slider"> <forms:slider id="example_slider" min="0" max="5" /> </forms:row>

Run Example

Slider with AJAX

Demonstrates a loan repayment calculator, which uses a slider to define a loan amount.

HTML:

<forms:form id="loan_compute"> <ajax:event id="compute_ajaxevent" updateregions="compute_ajaxregion" /> <ajax:region id="compute_ajaxregion"> <forms:row type="two_column" label="Amount"> <forms:slider id="amount_slider" min="100000" step="100000" max="900000" value="500000" onchangeajax="compute_ajaxevent" /> <forms:money id="amount_borrow" validations="mandatory" value="[? $amount_slider.value ?]" thousandsseparator="," valueignore="client" disabled="true" /> </forms:row> <forms:row type="two_column" label="Terms"> <forms:combobox id="terms" validations="mandatory" onchangeajax="compute_ajaxevent"> <forms:option value="3">3 Months</forms:option> <forms:option value="6">6 Months</forms:option> <forms:option value="12">1 Year</forms:option> <forms:option value="24">2 Years</forms:option> </forms:combobox> </forms:row> <forms:row type="two_column" label="Monthly Payment"> <forms:money id="monthly_payment" validations="mandatory" value="[? $amount_slider.value / $terms.value ?]" thousandsseparator="," valueignore="client" disabled="true" /> </forms:row> </ajax:region> </forms:form>

Run Example