It would need to be done with JavaScript. I’m not sure how you would
handle this with an Action, either, because the amount of data to be
entered and the free-form nature of it would overwhelm the limited UI
controls in the Actions palette.
As far as making the form not submit until the entire set of choices
is worked through, what I would do is observe the pickers, and make
sure that each one had a valid value before enabling the submit
button. The following requires Prototype.js to work.
function checkPickers(){
if($F('PickerOne') != ""
&& $F('PickerTwo') != ""
&& $F('PickerThree') != "")
return $('SubmitButton').enable();
return $('SubmitButton').disable();
}
You would call this in four places: in your body#onload, and in the
onchange of each of the three pickers. Note that the pickers and your
submit button need to have IDs to make this work. You will need to
add these using the Extended dialog for now, as Freeway does not put
them in by default.
<body onload="checkPickers()">
<select size="1" name="PickerOne" id="PickerOne"
onchange="checkPickers()">
...
</select>
The first call (in the onload) would disable the picker. Each time a
subsequent picker was changed, it would look to see if all three
pickers had a selected option with a value. If so, it would enable
the submit button. If not, it would leave it disabled.
As far as the other question goes, I’m sure there’s a way to make
this easier in Freeway. I’ll keep it in the back of my head with all
the other parallel processing things going on in there and let you
know what comes of it.
Walter
On Jun 25, 2008, at 6:52 AM, johnrob wrote:
Does anyone know if there is an action or a tutorial to create a
hierarchy of drop down menus, where the content in drop menu 2 is
dependent on what was selected in drop down 1?
I don’t want the user to submit the form until all selections are
made, so does this mean it would need to be a javascript function?
Any help appreciated.
John
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options