close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

store form in cookie issue

Thread began 6/24/2019 10:27 am by s.joiner74419001 | Last modified 6/26/2019 11:27 am by Ray Borduin | 39 views | 7 replies |

s.joiner74419001

store form in cookie issue

I am wanting to store a from in a cookie for the purpose of as it is quite a large form ( around 50 elements ) I would like the user to be able to click a 'Save Form' input button and they can return at a later date to complete.

I have discovered from the behaviours window there is all the necessary behaviours ( store / set entire form to cookie )

From older posts to forum I saw one answered by Jason saying you should select the 'Input [submit]' button and bind the 'store entire form in cookie' behaviour to it.

Then select the body tag and bind the 'Set entire form to cookie' with the 'onClick' behaviour.

My problem is I can't edit the body tag as it is in the template which is un-editable and I can't find the 'make tag editable' feature which may have been removed from DW CC 19.

What are my options here?

Thanks in advance!

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to store the cookies onSubmit of the form or onClick of the button. What did you want to add with the body tag?

Sign in to reply to this post

s.joiner74419001

The reason I mentions the body tag is because its what Jason had advised in the forum post fead I mentioned.

I actually typed an error as he said to attach the 'Set entire form to cookie' with the 'onLoad' behaviour NOT onClick as I said previously.

I can't seem to get the cookie data to display when the user returns to the page

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a URL to see what you have done and FTP access? I can take a look to see what you are doing and what might be wrong.

Sign in to reply to this post

s.joiner74419001

Details in PM. Ive bind the behaviour to the 'Save Form' input button at top of page.

Sign in to reply to this post

Ray BorduinWebAssist

There was a missing cookies.js reference on the page that caused it to not save the cookies correctly. It may not have added it properly because of the template issue you mentioned above. I've fixed your page by manually adding lines 427 and line 429 as well as got it to re-populate the form from the cookie with the code on line 1548. Please download the file for your reference.

Sign in to reply to this post

s.joiner74419001

Great.. Thanks Ray! this now works as I had hoped.

So If I was to replicate this function. What procedures would I take using the available options in the plugin.

Sign in to reply to this post

Ray BorduinWebAssist

You can apply the save cookie in form behavior just like you had. Then just copy and paste the three lines I referenced onto the page as well. Since you don't have access to the <body> tag, you can't really do it without copy and paste.

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...