Re: Select or text field depending on another select

2008-06-10 Thread DaveMahon

Changing the contents of controls and activating/deactivating is
appropriate, but alternating between select and text input depending
on the value of another select? That's a very good way of confusing
and frustrating users. My gut instinct is that a wizard style
interface, where you get routed to different screens depending on the
value provided on the first screen would be far less confusing and
frustrating for users.

On Jun 10, 4:27 am, Filip Camerman <[EMAIL PROTECTED]> wrote:
> Really? Seems pretty standard to me to have a self-changing form. E.g.
> you select a country in one select box and then the next box changes
> to hold that country's regions or cities.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Select or text field depending on another select

2008-06-10 Thread Adam Royle

What I do is show/hide divs containing the form elements using
javascript (as dardo said above, look at jquery if you're not familiar
with js frameworks).

Then you can keep all of the form elements in the single view without
having to load via ajax, etc. You may need to do some checks in the
model to save only required data (as all form fields may be submitted,
depending on the browser).

Hope that helps.

Adam

On Jun 7, 6:02 pm, dandreta <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am doing searchs in my cake application. I have a select with
> options and a text field. I want that if in this select is chosen
> option 1 or option 2, the text field is kept to introduce the text to
> search, but if the selected option is 3, I want that the text field is
> replaced by another new select with 2 options.
>
> Has anyone made something similar? How can I do that?
>
> Thanks and regards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Select or text field depending on another select

2008-06-10 Thread Filip Camerman

Really? Seems pretty standard to me to have a self-changing form. E.g.
you select a country in one select box and then the next box changes
to hold that country's regions or cities.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Select or text field depending on another select

2008-06-09 Thread DaveMahon

Be careful with this. While it is programatically possible, it is very
poor user interface design and will, in all likelihood, frustrate your
users to no end. You might want to seriously reconsider how you
implement your interface.

dandreta wrote:
> Hi,
>
> I am doing searchs in my cake application. I have a select with
> options and a text field. I want that if in this select is chosen
> option 1 or option 2, the text field is kept to introduce the text to
> search, but if the selected option is 3, I want that the text field is
> replaced by another new select with 2 options.
>
> Has anyone made something similar? How can I do that?
>
> Thanks and regards.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Select or text field depending on another select

2008-06-08 Thread Mário Jorge

dandreta, search for "ajax observe field" on this group that you will
find a answer. ok...

On Jun 7, 5:02 am, dandreta <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am doing searchs in my cake application. I have a select with
> options and a text field. I want that if in this select is chosen
> option 1 or option 2, the text field is kept to introduce the text to
> search, but if the selected option is 3, I want that the text field is
> replaced by another new select with 2 options.
>
> Has anyone made something similar? How can I do that?
>
> Thanks and regards.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Select or text field depending on another select

2008-06-07 Thread Dardo Sordi Bogado

> Has anyone made something similar? How can I do that?

JQuery?

> Thanks and regards.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Select or text field depending on another select

2008-06-07 Thread dandreta

Hi,

I am doing searchs in my cake application. I have a select with
options and a text field. I want that if in this select is chosen
option 1 or option 2, the text field is kept to introduce the text to
search, but if the selected option is 3, I want that the text field is
replaced by another new select with 2 options.

Has anyone made something similar? How can I do that?

Thanks and regards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---