I'm creating a form using the Joomla XML form definition, and I want to create a range of integer values a user can select from. The number/integer
field is fine for this use-- but I need to allow the first
, last
, and step
parameters to be set by the user of the component. Is it possible to pass in variables to the XML form?
<field name="myintegervalue" type="integer" default="Some integer" label="Choose an integer" description="" first="1" last="10" step="1" />
I realize it's possible to create a custom field type, but then I'd end up re-inventing the wheel and building the select list with the min / max / step values and duplicating the JFormFieldNumber
code.