Is it possible to remove "Enter a page caption...."?
The umbracoForms edtor seems to be set up assuming the form is always a full page. My pages have a pageName set in another tab in the docType so I don't want editors to think they should add a caption to the top of a particular form. Is there anyway we can remove the "Enter a page caption..." item at the top of a single form, i.e. on a form by form basis?
I would say it´s not recommended to make change to the Umbraco core functionality, in this case Umbraco Forms when this is said, you need to find the file called umb-forms-designer.html, it is located in is folder \App_Plugins\UmbracoForms\Directives\umb-forms-designer.html in your file structure for your Umbraco installation,
Then find line 17 in the file and out comment or delete this piece of HTML.
<inputtype="text"class="inline-editor page-name"ng-model="form.$currentPage.caption"placeholder="Enter a page caption...">
Then you should see the enter a page caption field disappear, maybe you need to clear your browser cache to see the changes. I don´t know by removing these lines if this will have some impact on how Umbraco Forms will works, and in the case you need to upgrade Umbraco Forms, maybe you need to remove the HTML from the umb-forms-designer.html agian.
Thanks. Looks like that will remove it for every form. Probably ok for the current project, but as you say, once handed over and upgraded by someone else, there could be troulbe ahead :(
Is it possible to remove "Enter a page caption...."?
The umbracoForms edtor seems to be set up assuming the form is always a full page. My pages have a pageName set in another tab in the docType so I don't want editors to think they should add a caption to the top of a particular form. Is there anyway we can remove the "Enter a page caption..." item at the top of a single form, i.e. on a form by form basis?
Thnx
Craig
Hi Craig,
I would say it´s not recommended to make change to the Umbraco core functionality, in this case Umbraco Forms when this is said, you need to find the file called umb-forms-designer.html, it is located in is folder \App_Plugins\UmbracoForms\Directives\umb-forms-designer.html in your file structure for your Umbraco installation,
Then find line 17 in the file and out comment or delete this piece of HTML.
Then you should see the enter a page caption field disappear, maybe you need to clear your browser cache to see the changes. I don´t know by removing these lines if this will have some impact on how Umbraco Forms will works, and in the case you need to upgrade Umbraco Forms, maybe you need to remove the HTML from the umb-forms-designer.html agian.
Hope this helps,
/Dennis
Hi Dennis,
Thanks. Looks like that will remove it for every form. Probably ok for the current project, but as you say, once handed over and upgraded by someone else, there could be troulbe ahead :(
Craig.
is working on a reply...