inserting form into editable

Forum home » Delegate support and help forum » Dreamweaver Training and help » Inserting a Form into an Editable Region in a template

Inserting a Form into an Editable Region in a template

resolvedResolved · High Priority · Version CS3

Stephen has attended:
Dreamweaver Introduction (2 days) course

Inserting a Form into an Editable Region in a template

I need to insert a contact form into an Editable region in a template page that i used throughout a website. When i click inside the editable region, i get a message box stating that 'making this change would require a change to the code that is locked by a template. The change will be discarded'

I understand the code will be changed, but i thought the that if it is within the editable region then thats fine and is what these regions are for. Any ideas how to overcome this? The other pages in the website use this region for text.

RE: Inserting a Form into an Editable Region in a template

Hi Stephen

Thank you for your question.

First test out templates in your site by creating a new template that is a blank page with an editable region. When you create a new page based on the template are you able to add text or a form to the region?

If this works then there could be a problem with your template. Try checking the editable region in question using code or split view.

Finally:
Does your template have more than one editable region?
Are your templates nested or repeating?

Kind regards,
Andrew

RE: Inserting a Form into an Editable Region in a template

I can add text yes.

I have 3 regions. Two margin regions on either side and a large centre region. Its the centre region which is causing the problem, the other two quite happily accept inserting a form.

I'm not sure if they are nested or repeating. How can I tell?

RE: Inserting a Form into an Editable Region in a template

Hi Stephen

Thank you for the update - in theory the form should work in all three regions. If one of the templates were nested inside another then the title of the template would indicate this.

Would you be able to email the code for the page so I can review and see what else might be causing problems? The best address to send to is info@stl-training.co.uk and mark your email for the attention of Andrew

Kind regards,
Andrew

RE: Inserting a Form into an Editable Region in a template

Hi,

Just as a side note, Dreamweaver is saying that you are making a change outside of editable regions. This sometimes happens if you try to insert something (such as a form) and Dreamweaver needs to insert code in other, non-editable regions for the form to work. For example, some Javascript at the top of the file (for any behaviours such as Form Error Checking).

Try doing the exact same thing (insert form, or whatever you're trying to do) in a blank file. Check the code view to see if Dreamweaver inserted anything outside the <FORM> tags.

If it did, you need to make sure you have an editable region to allow for this. Also, you might want to copy and paste the 'extra' dreamweaver code into your original file (in another editable region) first, then try to insert the form again, see if it allows you to.

I would ALWAYS recommend having an editibale region within your <HEAD> tags. This means if Dreamweaver does need to insert Styles or Javascript code, it can.

Good luck.

Regards, Rich

RE: Inserting a Form into an Editable Region in a template

Hi Stephen,

This question has now been left unattended for a while.

How did you go with the editable regions? Did you find a solution? Did you get a file over to Andrew?

We look forward to hearing from you.

Thank you.
Regards, Rich

RE: Inserting a Form into an Editable Region in a template

Hi,

This question has now been left unattended for a while.

We like to keep down the large number of active forum posts we receive.

As we are waiting for your response for further information to help resolve your issue, we will be automatically marking this question as resolved in the next 5 days (unless you post a follow-up within that time).

We look forward to hearing from you.

Thank you.
Regards, Rich

Tue 4 Aug 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Dreamweaver tip:

Xhtml vs html

When using dreamwear template or just creating a blank webpage, you are able to select the markup language you want to use. The main choices are either xhtml or html. It is now best to select xhtml as this will translate all the html into xml, so it is transmitted across the web in xml format. One of the main advantages of this is that it makes the site that you build much more compatible with the range of different web browsers that exist.

View all Dreamweaver hints and tips


Server loaded in 0.05 secs.