I created a form using episerver. forms. I would like to add a css class to a form field. Anyone knows how can I do that?
Thanks in advance,
Have you read this? http://webhelp.episerver.com/latest/cms-edit/using-forms.htm > Creating a form > 2. Adding form fields ?
Thanks Alf Nilsson,
I did exactly what you said, I copied TextboxElementBlock.ascx from modules\_protected\EPiServer.Forms\Views\ElementBlocks to ~/Views/Shared/ElementBlocks, exactly with the same name and then I added one text element to my form but I don't see my changes. it seems my new view is being ignored.
I also checked Forms.config and seems ok.
<episerverforms minimumAccessRightLevelToReadFormData="Edit" sendMessageInHTMLFormat="true" defaultUploadExtensionBlackList="asp,aspx,asa,ashx,asmx,bat,chm,class,cmd,com,config,dll,exe,hta,htr,htw,jse,json,lnk,mda,mdb,msc,msh,pif,printer,ps1,ps2,reg,rem,scf,scr,sct,shtm,shtml,soap,stm,svc,url,vb,vbe,vbs,vsix,ws,wsc,wsf,wsh,xamlx,htm,html,js,jar" coreController="/EPiServer.Forms/DataSubmit" formElementViewsFolder="~/Views/Shared/ElementBlocks" workInNonJSMode="false" injectFormOwnJQuery="true">
I don't know what changed but I had to close my Visual Studio and when I opened again it starts working.
Thanks a lot. Your blog is really helpfull.
It's not about Visual Studio.
ASP.NET try to find the view from