I am trying to add a slider field type to Forms. Is there a way to do it ? Or is there an existing package available for Umbraco forms slider field type.
You've now created your own Forms FieldType! Now you can include some CSS and probably a JS framework to render a pretty Slider. You might also need som max/min settings which you can add to your Slider.cs file.
But this should give you a good start.
Remember if it turns out great and could be useful to others, package it up and share with others here on our!
Umbraco forms - add slider field type
Hi,
I am trying to add a slider field type to Forms. Is there a way to do it ? Or is there an existing package available for Umbraco forms slider field type.
any inputs are appreciated.
Thanks!
Hi Rasshme.
I haven't seen a slider fieldtype for Umbraco Forms, but it doesn't sound like it would be very difficult for you to build your own fieldtype.
Docs: Adding a custom field type: https://our.umbraco.org/documentation/products/umbracoforms/developer/extending/adding-a-fieldtype
You'd probably start with something like:
Then in /App_Plugins/UmbracoForms/Backoffice/Common/FieldTypes/ add a html file called "slider.html" and use this HTML to start with:
Then for the rendering part you need to add a view in the /Views/Partials/Forms/FieldTypes called FieldType.Slider.cshtml. Start with this html:
This should give you this output:
You've now created your own Forms FieldType! Now you can include some CSS and probably a JS framework to render a pretty Slider. You might also need som max/min settings which you can add to your Slider.cs file.
But this should give you a good start.
Remember if it turns out great and could be useful to others, package it up and share with others here on our!
Have a great day!
Thanks Dennis,
will give it a go and share the package once ready.
Cheers!!
Awesome Rasshme! Looking forward seeing it!
Have a great day!
Hi Rasshme,
Did you ever finish your package - if you did i would be very interested :-) TIA!
is working on a reply...