PDA

View Full Version : Saving/Setting Entire Form Issue


Tom M
04-13-2009, 08:17 PM
I have a 2 page wizard using that I am trying to get working using Cookies Toolkit, but am seeing some behavior that is at odds with what is in the Solution Recipe for this task.

In particular, when I save the form to a cookie, the name of the form "wizForm1" isn't presented in the Cookies Toolkit dialog, but instead I am seeing "form:forms[0]". Also the name of the cookie derived from the form name is an invalid value "camp_wizard_1_forms[0]". I edit it to remove the trailing "[0]" and proceed.

Here is a screenshot:
31

Next, when I am on the second page of the 2-page wizard, the page is based on a template, and the "<body>" tag is in a non-editable region. Nevertheless, when I select the "<body>" tag, I can select the "Set Entire Form from Cookie" behavior, but again, do not see the name of the form, but instead "form:forms[0]"

Here is a screenshot:
32

I am able to insert the behavior, but the behavior is not visible in the behaviors panel.

Here is a screenshot:
33

After all is said and done, the cookie gets set and the form on the second page is populated, but the "set form from cookie" behavior is not listed, and the "body" tag can not be edited.

Am I seeing what I should be seeing?

TM

Ray Borduin
04-14-2009, 08:03 AM
Everything is correct except the fact that the behavior does not show on the page.

The forms[0] reference is because we started to refer to forms by index instead of by value. It makes it so you don't have to update the server behaviors if you change the form name and allows it to work with unnamed forms.

The fact that the behavior cannot be edited is a bug that I will log.