Multiple Choice, and File Upload, how to map them to data types on submit
Hello, on my form I have added a Multiple Choice checkbox with values, and I am trying to map it to an XML Nupicker multichoice, but can't see obviously how to do it, will the form type only play ball with the default Umbraco Checkbox List type?
If so, how do you map what someone ticks on the form, to boxes being ticked on the node?
--
Same with File Upload form type, can this drop into a media picker item? Or will it only drop into the File Upload data type? I have changed to using a File Upload, but this data type is a bit lacklustre compared to media picker, I don't think I can get extension or filesize from this object.
you can customise the umbraco forms. there is a FieldTypes folder in ~/Views/Partials/Forms inside there are a bunch of Fieldtypes you can use or create your own. These are for the view.
you need to create class that inherits from Umbraco.Forms.Core.FieldType where you can create a new field type for umbraco forms to use.
finally in App_Plugins > UmbracoForms > Common > FieldTypes
create html smilar to the files that are in the folder these are to display the new field type in the backoffice to use.
with these you should be able to setup a new fieldtype to use with umbraco forms. i recently created a input field that autocompletes user input from data in a file.
Multiple Choice, and File Upload, how to map them to data types on submit
Hello, on my form I have added a
Multiple Choice checkbox
with values, and I am trying to map it to anXML Nupicker multichoice
, but can't see obviously how to do it, will the form type only play ball with the default UmbracoCheckbox List
type?If so, how do you map what someone ticks on the form, to boxes being ticked on the node?
--
Same with
File Upload
form type, can this drop into a media picker item? Or will it only drop into theFile Upload
data type? I have changed to using a File Upload, but this data type is a bit lacklustre compared to media picker, I don't think I can get extension or filesize from this object.Thanks!
you can customise the umbraco forms. there is a FieldTypes folder in ~/Views/Partials/Forms inside there are a bunch of Fieldtypes you can use or create your own. These are for the view.
you need to create class that inherits from Umbraco.Forms.Core.FieldType where you can create a new field type for umbraco forms to use.
finally in App_Plugins > UmbracoForms > Common > FieldTypes create html smilar to the files that are in the folder these are to display the new field type in the backoffice to use.
with these you should be able to setup a new fieldtype to use with umbraco forms. i recently created a input field that autocompletes user input from data in a file.
hope this helps
is working on a reply...