close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

"Validation Show If" problem

Thread began 5/16/2010 1:00 pm by cal375160 | Last modified 5/18/2010 9:41 am by Jason Byrnes | 1133 views | 4 replies |

cal375160

"Validation Show If" problem

When I try to install the Validation Show If behavior to a phrase as described in your help file "How to Apply CSS styles to form elements with Validation Toolkit?", Dreamweaver gives me the following message: "Making this change would require changing code that is locked by a template or a translator. The change will be discarded."

Any suggestions?

Cal

Sign in to reply to this post

CraigRBeta Tester

it seems like you are editing a page based on a template.

Ensure that the cursor is in an editable area of the page when you try to add the server behavior and it should work ok.

Sign in to reply to this post

cal375160

Still need help...

The cursor (and the form to which the validation is supposed to be applied) is in an editable region. I am now getting the following message: "You have made changes to code that is not marked as editable. If you retain those changes, they will be lost the next time you apply a template update to this file, Do you want to retain the changes until then?"

That will be a problem (if true) in the future when I change the template (as I will need to do).

Also, in testing the form I notice that if one of the validations does not pass the whole form comes back blank (to start all over again). Is there a way to preserve the valid data so the user doesn't have to start all over again?

Thanks,

Cal

Sign in to reply to this post

CraigRBeta Tester

As long as the areas in which you are making changes are within the editable regions of your template, you should be ok.

for example within the content div...

<div id="content"><!-- InstanceBeginEditable name="content" -->

Lorum ipsum etc

<!-- InstanceEndEditable -->
</div>

Also ensure that the head section of your page is editable too.

I occasionally get the error message you refer to, even when there is nothing wrong.

When you refer to your validation, i presume you want the fields which have been correctly completed to retain their values.

there are a couple of ways to do this, either by passing the post variables back into the form, or creating a session variable for each field you want to retain the value, and passing these values back into the form.

in dreamweaver, in your text field properties, set the init val using one of these methods.


hope this helps

Sign in to reply to this post

Jason ByrnesWebAssist

The error you are getting is a common one when working with templates in Dreamweaver.


There is no solid fix for the issue, but I have discovered a workaround. See the following thread for details:
showthread.php?t=4509

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...