Wow, that's a new one. Most questions regarding fieldtype is usually about adding fieldtypes, not removing. For all I know, there is not built in configuration for removing the standard fieldtypes without some "hacky" coding. It does sound however like a useful config that would be nice to have in the /App_Plugins/UmbracoForms/UmbracoForms.config file, something like:
But this is however not a valid setting at the monent. Maybe you could add it as a feature request on http://issues.umbraco.org? (Make sure to label you post 'Feature Request' and not 'Bug')
However, if this is something that you really want right now, here is the hacky solution (note, I dont recommend this since future Umbraco Forms upgrades might override this, but I do understand that sometimes one needs to take extreme actions to fit a clients need):
Find this file: /App_Plugins/UmbracoForms/Backoffice/Form/overlays/fieldtypepicker/field-type-picker.html.
In the LI element repeater, add the following angular conditional class (line 22).
This will add the class 'hide' to the field type File Upload, making it not visible. See animation:
As I said, this is not a pretty solution, but it works. A setting in a configuration file would be a lot prettier or some way of removing fieldtypes by adding a custom class of some sort could also work, but for all I know, thats not possible.
another option could be installing our package Forms On Steroids (https://our.umbraco.org/projects/backoffice-extensions/umbraco-forms-on-perplex-steroids/) that has this option configurable in a config-file. Per datatype you can decide whether to have it available or not
I do love "Umbraco Forms on Perplex Steroids" and use it in most of the solutions I build, however i've seem to have missed this feature.
Sometimes it feels like everytime a question starts with "Can I do ... with Umbraco Forms?", 9/10 time the answer is "Yes, if you install Perplex Steroids". :)
Thank you very much for this! Do you also know if it is possible to set the the "HideField"-property of the build-in fieldtypes to true? I want t hide all buildin fieldtypes but they are already used in some existing forms.
Hmm, I really don’t know, maybe it would work to create classes that inherits from them add these to the collections and remove the original once. I really don’t have a good answer. Sorry.
Umbraco forms - disable answer type
Hi Guys,
I would like to remove File Upload form my answer type options.
Can you help me?
Thanks, Florin
Hi Lazau.
Wow, that's a new one. Most questions regarding fieldtype is usually about adding fieldtypes, not removing. For all I know, there is not built in configuration for removing the standard fieldtypes without some "hacky" coding. It does sound however like a useful config that would be nice to have in the /App_Plugins/UmbracoForms/UmbracoForms.config file, something like:
But this is however not a valid setting at the monent. Maybe you could add it as a feature request on http://issues.umbraco.org? (Make sure to label you post 'Feature Request' and not 'Bug')
However, if this is something that you really want right now, here is the hacky solution (note, I dont recommend this since future Umbraco Forms upgrades might override this, but I do understand that sometimes one needs to take extreme actions to fit a clients need):
Find this file: /App_Plugins/UmbracoForms/Backoffice/Form/overlays/fieldtypepicker/field-type-picker.html.
In the LI element repeater, add the following angular conditional class (line 22).
This will add the class 'hide' to the field type File Upload, making it not visible. See animation:
As I said, this is not a pretty solution, but it works. A setting in a configuration file would be a lot prettier or some way of removing fieldtypes by adding a custom class of some sort could also work, but for all I know, thats not possible.
All the best / Dennis
Hi Dennis,
Thanks a lot for answering, and for answering in this manner (like the super complete answer).
I need this "hacky" code because of this
Have a nice day!
Florin
No problem Florin!
Glad I could help!
Take care and have a great day!
/ Dennis
Hi Florin,
another option could be installing our package Forms On Steroids (https://our.umbraco.org/projects/backoffice-extensions/umbraco-forms-on-perplex-steroids/) that has this option configurable in a config-file. Per datatype you can decide whether to have it available or not
Cheerio,
Jeffrey
Hi Jeffrey,
Wow...awesome package.
Thanks a lot!
Florin
Ah, brilliant. :)
I do love "Umbraco Forms on Perplex Steroids" and use it in most of the solutions I build, however i've seem to have missed this feature.
Sometimes it feels like everytime a question starts with "Can I do ... with Umbraco Forms?", 9/10 time the answer is "Yes, if you install Perplex Steroids". :)
Thank you for an awesome package Jeffrey!
Haha Florin and Dennis,
thanks for making me wake up with a smile on my face!
Spread the word ;)!
Will do :)
You got it! :)
Hi Guys!
Since this was posted before Umbraco 8 I figured I'll share my findings in regards to Umbraco Forms 8+.
In the updated version they use "BuilderCollections" which makes it possible to modify Workflows, FieldTypes and more during Composition.
Ie:
When I first tested this my Composer did not have the ComposeAfter-attribute, but after adding this it worked fine.
Apart of these two collection there's also some other UmbracoForms-collections that can be modified during Composition:
There is also an issue for this on Github: https://github.com/umbraco/Umbraco.Forms.Issues/issues/61
Hope this helps anyone trying to accomplish the this.
This works like a charm - thank you so much! Have wanted this feature forever.
Hi Markus,
Thank you very much for this! Do you also know if it is possible to set the the "HideField"-property of the build-in fieldtypes to true? I want t hide all buildin fieldtypes but they are already used in some existing forms.
Best regards,
iNETZO
Hi!
Hmm, I really don’t know, maybe it would work to create classes that inherits from them add these to the collections and remove the original once. I really don’t have a good answer. Sorry.
Cheers!
is working on a reply...