[Pro] 2 hrs and cannot find problem (easy)

Happy New year all,

I was determined to figure this simple problem myself but after 2 hours have resorted to the forum.

In a form, I have a menu drop down that I am testing out.
it works, and I put the validate action on it so the student has to choose a “lesson number”

I cannot get it to show up in the error message when I hit submit when no lesson # is chosen.

ALl the other parts of the form are required and tell the user they need to be filled in, but the menu item can be ignored every time.

I tried changing its name, clicking required, moving it’s location.

I looked at another menu drop list i have in another form that does show the error and copied all setting exactly and it still does not work.

if you can look, it is the first thing beneath the video.

thanks

http://www.hoffkids.com/orangebook.html

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I couldn’t get the Validate action to work on your Menu/List item.

Instead I used Radio Buttons - Lesson 1, Lesson 2 and Lesson 3

If Radios share the same group then only one can be selected.

Apply the validate action to one of the Radios in the Group and you should be GTG

Not sure if this is a FW7 issue or an Action issue but a default value of [none] doesn’t appear to be added by the action.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hey Dave,

I took the [none} out but can put back. It made no difference and the one that worked on the other page had a blank box.

I tried to look at a page that the validate worked on the menu and do exactly the same thing but could not.

So in short, for now you are saying use a dif method?
the drop down list will go very high later.

HNY

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ok Dave,

Here is what I found,

The page that it works on has the FORM FIX action applied to the page.

Weird is that there is nothing showing in the form fix area of the action area-it is blank… it is just applied and there is a tab at the top.

I removed the form fix action from the page where menu validate worked and it no longer validated, so I applied form fix action to the page you saw and now it sees it.

Not sure at all what is happening but I think I got around it.

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes - If you read the blurb about Form Fix amongst other things that it does, the critical one in your case is:

Cleans up the internals of picking lists. Each option gets a label attribute, and empty values are given a value of nothing rather than no value attribute at all.

But I would have thought that the Validate Action would have done that for you - but then again the Validate Action was around a long time before FW7

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This Action does not have any interface – there’s nothing to set or configure. Applying it to the page just adjusts various things that the core Freeway layout engine does that are technically valid, but which cause problems with many kinds of form handlers. There are some fundamental flaws with the way that the browser form protocols are designed that make their output somewhat ambiguous in certain cases. For example (one of the things that Form Fix “fixes”) when you define a (picker) with an option that does not have a value:

<select name="foo" size="1">
	<option value="bar">Bar</option>
	<option>Baz</option>
	<option value="boo">Boo</option>
</select>

If you choose Baz from the picker and submit the form, your handler will receive the value of “Baz” for the $_POST[‘foo’] variable, even though there is no value defined there, and you might be reasonable in expecting that the value would be nil or nothing. FormFix finds any such select elements and adds a value=“” to them, so it’s completely unambiguous what you mean to both you and the form handler.

Walter

On Jan 1, 2015, at 5:26 PM, Hoffkids email@hidden wrote:

Weird is that there is nothing showing in the form fix area of the action area-it is blank… it is just applied and there is a tab at the top.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options