Are you, perhaps, using a theme instead of the default fields?
In \Views\Partials\Forms\ do you have a \Themes\ folder?
If you do look in there and you should see a theme folder (eg. Boostrap) and within that there is another FieldTypes folder that contains the field types for the theme. Try altering those instead.
FieldType.Textarea.cshtml
Hi
We have developed a site with a form. The form has a text area
We want to set the maxlength attribute of the text area
So we've amended FieldType.Textarea.cshtml, in /Views/Partials/Forms/Fieldtypes/FieldType.Textarea.cshtml
adding that attribute but the attribute doesn't appear in the rendered markup
We've stopped the site and restarted it We've republish everything, regenerating the xml
are we doing something wrong ?
Regards
Are you, perhaps, using a theme instead of the default fields?
In
\Views\Partials\Forms\
do you have a\Themes\
folder?If you do look in there and you should see a theme folder (eg. Boostrap) and within that there is another
FieldTypes
folder that contains the field types for the theme. Try altering those instead.Hi Dan,
Thanks for your response, the form is using the bootstrap theme within which we found another textarea.cshtml file.
We've amended that, refreshed and your correct - its now being picked up
Many thanks
is working on a reply...