I am using umbraco 7.5. I want to use umbraco form, I created a form using CMS but I want some changes in design. How can i add custom css classes to my form and one more thing how can i add validation to my field confirm-email which i created just below email field.
There are two ways to customize design of Umbraco forms
1. Disable default styles and add custom css Go to Umbraco froms settings and uncheck "Default styles checkbox". Default styles won't add to page and you will able to add any styles you want
I think the best way to do it is to make difference between forms in css, it's not easy to maintain different html for the same Umbraco Forms installation.
The easier solution will be - use some 3 classes on a parent div of forms, and inherit all styles from this classes. Like that:
i would really like to be able to implement this!
so far i am on board , disable the default stylesheet and make your own.
The thing i dont get, is if i have myforms.css for example. Where do i configure/choose that for a specific form to use this excaxt stylesheet ?
How to create custom Umbraco forms
Hi All,
I am using umbraco 7.5. I want to use umbraco form, I created a form using CMS but I want some changes in design. How can i add custom css classes to my form and one more thing how can i add validation to my field confirm-email which i created just below email field.
Thanks Manish
Hi Manish
There are two ways to customize design of Umbraco forms
1. Disable default styles and add custom css Go to Umbraco froms settings and uncheck "Default styles checkbox". Default styles won't add to page and you will able to add any styles you want
2. Totally change markup and css Look this link - https://our.umbraco.org/documentation/products/umbracoforms/developer/custom-markup/ Go to forms partials and change markup
I hope it will help you. Share with us how did you decide to go with it. I personally prefer second way.
Thanks,
Oleksandr Skrypnyk
Many thanks Oleksandr Skrypnyk for replying fast:-
Basically I want three forms with different designs so how can i do this.
Basically I want to create three partial view for all three forms and want to save data for all three in CMS. Is there any way to achieve this?
Thanks Manish
Hi Manish
I think the best way to do it is to make difference between forms in css, it's not easy to maintain different html for the same Umbraco Forms installation. The easier solution will be - use some 3 classes on a parent div of forms, and inherit all styles from this classes. Like that:
Thanks, Oleksandr Skrypnyk
Super fast answer by Oleksandr Skrypnyk (clap)
Few more things 1. how can i add validation in CMS for email and confirm-email , two fields which i added in CMS.
Reset Button
Add some label for showing message
Many thanks Oleksandr Skrypnyk
i would really like to be able to implement this! so far i am on board , disable the default stylesheet and make your own. The thing i dont get, is if i have myforms.css for example. Where do i configure/choose that for a specific form to use this excaxt stylesheet ?
You are welcome, Manish
Hi Manish
I'm just curious, how did you decide to do your form? Share please.
Thanks,
Alex
Alex,
I am able to manage validation as
and manage design by custom css.
All is working fine except few things
Thanks
is working on a reply...